This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Preprocess constants.
- To: Paul Faure <paul at engsoc dot org>
- Subject: Re: Preprocess constants.
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 01 Jul 2001 10:43:43 -0300
- Cc: <gcc-help at gcc dot gnu dot org>
- Organization: GCC Team, Red Hat
- References: <Pine.LNX.4.33.0106301055080.9343-100000@stout.engsoc.carleton.ca>
On Jun 30, 2001, Paul Faure <paul@engsoc.org> wrote:
> And it took a good couple of mins to run. Is there any way to get the
> compiler to execute the code only once if I know that the int argument
> will never change ? ie.
See attributes const and pure in the GCC manual.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me