C as target platform?
Robert Dewar
dewar@gnat.com
Fri Aug 23 03:22:00 GMT 2002
<<For bootstrapping (and maybe for the distribution) of GCC,
one could use the C-"compiled" version of GCC,
although the real source is written in some other language.
>>
That's one possibility, another is to generate canonical simple machine
code (e.g. a mips subset) and provide a simulator. We actually looked
into these possibilities closely early on in the GNAT project since we
were concerned about the bootstrap issue.
But in practice we found that using the cross-port approach worked just
fine for both us and many volunteers who generated cross-ports under
their own steam without any help from us (Nextstep, OpenBSD, FreeBSD,
Amiga, MS/DOS, are some of the ports that appeared this way).
In fact to port GNAT to a brand new architecture, the basic cross port is
a trivial part of the work, perhaps 5% or less. Ada is not C, and just getting
a non-tasking bootstrap without the tools and without the run-time library
(particularly the tasking support) is a trivially easy part of the porting
process for a new architecture in our experience.
More information about the Gcc
mailing list