Builtins in `std'
Mark Mitchell
mark@codesourcery.com
Wed May 23 08:37:00 GMT 2001
>>>>> "Nathan" == Nathan Sidwell <nathan@codesourcery.com> writes:
Nathan> not others. yeay even with -pedantic. So as a user, I
Nathan> agree.
Good.
Nathan> With my compiler hat on, I find it strange/ugly that we
Nathan> push tons of stuff into the user/library namespace. So,
Nathan> again, I agree.
Good.
Thanks, now we've got three: you, me, Gaby.
Nathan> Sometimes I wish we could just source some special header
Nathan> file at startup which declared the magic things the
Nathan> compiler must know about like std, std::bad_alloc,
Nathan> operator new (size_t), etc. ahh, if only it were lisp,
Nathan> mutter mutter ramble ...
Yes, we did this in another compiler I worked on. It was much
simpler -- even though we did need a lot of `#if' code to handle
different architectures and such. There are a few nasty technical
problems that make it hard to get it completely right, though, and you
basically need to define a preprocessor symbol for every command-line
option that affects your ABI.
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com
More information about the Gcc
mailing list