Configuring for bare hw ia32 PC's

Jonathan S. Shapiro shap@eros-os.com
Tue May 13 14:10:00 GMT 2008


On Mon, 2008-05-12 at 17:56 -0400, duane ellis wrote:
> jonathan> Yes. But having done that, don't try to use stage1 GCC to 
> build your
> jonathan> kernel. Use stage2 GCC for everything, if only to reduce the 
> number of
> jonathan> variants of tools that can hurt you.
> 
> Wait - hold on for a second.
> 
> The stage1 GCC has *zero* header files, and only 'libgcc'.

> It really depends on your needs, fears, etc. Perhaps my fear is over 
> blow - why? Because linux x86 builds with "gcc" - the default compiler
> and uses the "--nostdinc" trick.

--nostding is too strong, because you want to be able to get things like
inttypes.h. Unfortunately there is no good automated check that can be
used here.

--nobuiltins is good, and also --freestanding.


shap



More information about the Newlib mailing list