This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Questions about optimizing the compiler itself


On Monday  4 June 2001 09:00, Tim Prince wrote:
> You can set options in the CFLAGS, CXXFLAGS, and BOOT_CFLAGS environment
> variables before running configure.  It's not likely to buy you much but
> more information about the reliability of those options.  -ffast-math
> may help out in the math libraries, when used with appropriate -march
> options.  -O2 -g is a default but would be overridden in many places
> ifyou set the flags differently.
> ----- Original Message -----
> From: "Luke Mauldin" <lukeskyfly@txk.net>
> To: <gcc@gcc.gnu.org>
> Sent: Sunday, June 03, 2001 6:55 PM
> Subject: Questions about optimizing the compiler itself
>
> > Hello, I know you can pass flags to the compiler to optimize programs
>
> that
>
> > the compiler is building.  Like -O2 and -march=athlon, etc..., etc...
> > However, I have a question, how can I optimize gcc itself?  I do alot
>
> of
>
> > compiling of large projects and I want the compiler to work as fast as
> > possible.  I have an AMD Athlon but I am not sure how to pass it the
>
> flags
>
> > for -march=athlon and -mcpu=athlon while it is bootstraping itself.
>
> Can
>
> > anyone help me out here?
> > P.S.  If anyone knows of any options that work very well with the
>
> athlon
>
> > besides -march=athlon and -mcpu=athlon please share your knowledge.
> >
> > Luke


If I read well the doc and some recent posts fast-math should never be used 
on compiler or fundamental libraries (specially in compiler libs) since this 
is supposed to genearte code who will not deal with NANs and other 
exceptional conditions.  Its use could be legitimate on some games but not on 
serious software or on libraries required by serious software.

			JFM



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]