This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Enabling -O2 option of GCC
- From: Gary Thomas <gthomas at redhat dot com>
- To: Andrew Lunn <andrew dot lunn at ascom dot ch>
- Cc: "N.Suresh" <nsuresh at cdotb dot ernet dot in>,eCos Discussion <ecos-discuss at sources dot redhat dot com>,rprakash at cdotb dot ernet dot in, bshiva at cdotb dot ernet dot in
- Date: 10 Dec 2001 06:39:18 -0700
- Subject: Re: [ECOS] Enabling -O2 option of GCC
- References: <3C14B57B.8080505@cdotb.ernet.in> <20011210141229.I19614@biferten.ma.tech.ascom.ch>
On Mon, 2001-12-10 at 06:12, Andrew Lunn wrote:
> On Mon, Dec 10, 2001 at 06:45:39PM +0530, N.Suresh wrote:
> > Are there any pointers for getting the areas where exactly gcc
> > optimises and
> > special care in coding has to be taken care of ?
>
> Do a search on the ecos discuss archive for "volatile".
The answer also depends a lot on the platform being used (i.e. which
processor architecture - ARM, PowerPC, etc) and the vintage of the
compiler itself.