This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: Configuring for bare hw ia32 PC's
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