Oxygen Basic
Programming => Example Code => General => Topic started by: Aurel on April 25, 2018, 08:13:20 AM
-
I've also included the source files for self-compiling, which is rolling along nicely.
WOW ... :) NICE !
Charles ...is that first release?
-
Hi Roland,
Thanks for spotting those. I've fixed the dot-coding and posted an update.
I've also included the source files for self-compiling, which is rolling along nicely. These are stored in inc/o2, and I will endeavour to expose manageable pieces of code and make them available for other programs to use. Some of the obvious ones are HashStore, Lexer, MacroEngine, MetaLanguage and Assembler.
https://github.com/Charles-Pegge/OxygenBasic/blob/master/OxygenProgress.zip
This deserves a mention in the O2 announcements section of the forum.
Curious, are you getting any sleep Charles?
-
Not ready to release yet. The source code produces o2g1.exe which then produces o2g2.exe. This is my test configuration for O2 over 3 generations, so to speak.
-
Not ready to release yet. The source code produces o2g1.exe which then produces o2g2.exe. This is my test configuration for O2 over 3 generations, so to speak.
Similar to bcx/bc9 I guess?
With them it takes 3 translate/compiles to produce the final producrt
James
-
Yes, it is a bit like walking through a hall of mirrors.
g0, the current Oxygen.dll is produced with FreeBasic.
g0 compiles g1 using the adapted o2 source code
g1 compiles g2 using the same source code
If the source code is correct, both g1 and g2 should have identical binaries, and we have a viable self-compiling system.
-
Amazing work, Charles!
Do you plan on generating a 64-bit Oxygen.dll to enable a 64 bit JIT mode too?
-
Does FreeBASIC have a native 64 bit compiler for Windows that isn't a translation to gcc?
-
Yes Mike, making a 64bit oxygen.dll should be as simple as switching from RTL32 to RTL64.Though there may be some Assembler to shift from hdr.inc to the RTLs.
John, I have not tried any of FreeBasic's alternative modes but I think it is either C-emitter, or GAS-emitter for GCC. And yes, I sleep quite often. It is the best way I know to solve coding problems :)
-
... making a 64bit oxygen.dll should be as simple as switching from RTL32 to RTL64.
Excellent!
I sleep quite often. It is the best way I know to solve coding problems :)
+100500 :D
Does FreeBASIC have a native 64 bit compiler for Windows that isn't a translation to gcc?
If there were, there would've been noone alive on the PowerBASIC forum long long time ago. ;)