[bootstrappable] Re: GNU Mes 0.18 released

  • From: "Orians, Jeremiah (DTMB)" <OriansJ@xxxxxxxxxxxx>
  • To: "bootstrappable@xxxxxxxxxxxxx" <bootstrappable@xxxxxxxxxxxxx>
  • Date: Wed, 7 Nov 2018 22:18:37 +0000

I tested this and it works!
Note that the patch above is different to the patch that I applied. I then 
compiled the simple compiler in test99, and it also worked, and it can 
compile C programs.
Excellent, I'm guessing your previous patch failed to make the bin directory 
(Possibly commented out that line)

Yes, I get the same checksums.
Excellent ^_^

Ok, this is very cool. So this does exactly what I wanted.
Good

The C compiler seems to be implemented in seed.M1,
That is correct

which seems to be the result of the compilation of 
stage0/stage3/M2-Planet_x86.c (which you wrote by hand in C), 
Actually it is the result of using cat to combine the hand written source files 
in M2-Planet into a single file

which was compiled using roms/cc_x86, which is implemented by stage2/cc_x86.s 
(which you also wrote by hand), 
That is correct (I also hand wrote all of the lower stages too)

which is a more primitive C compiler. Did I get it right?
Actually it implements all of the C language functionality of M2-Planet as of 
version 1.0
(So structs, unions, function pointers, gotos, inline assembly and other 
goodies)

The plan for M2-Planet is to ensure no new functionality is used until after a 
major release 
(Thus ensuring full bootstrap is maintained at all times)
And new features are slowly being added (While Mes.C simplies) until the full 
bootstrap is done.

Now that all of the pieces of mescc-tools can also be built by M2-Planet;
We can use kaem (it is part of mescc-tools) to remove the need for bash or make 
from the bootstrap.
I plan on making M2-Planet hardware neutral to allow it to build C programs for 
other hardware platforms in the exact same fashion mescc-tools does.
Eliminating any cross-platform build headaches and ensuring ARM binaries built 
on x86 will be bit for bit identical to ARM binaries built on 
PowerPC/SPARC/x86/RISCV/etc

-Jeremiah

Other related posts: