This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Questions about optimizing the compiler itself
- To: "Luke Mauldin" <lukeskyfly at txk dot net>, <gcc at gcc dot gnu dot org>
- Subject: Re: Questions about optimizing the compiler itself
- From: "Tim Prince" <tprince at computer dot org>
- Date: Mon, 4 Jun 2001 00:00:39 -0700
- References: <01060320555601.15430@localhost.localdomain>
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