On 16 May 2006 18:30:31 -0500, Harry Putnam <[EMAIL PROTECTED]> wrote:
Taking the opportunity of a major update to adjust CFLAGS in
/etc/make.conf and I found something that looks like it might be a
typo of mine.

   CFLAGS="-Os -march=athlon-xp -pipe"

Does the `O' (uppercase oh) have an `s' component?

Yes - the -O setting is the level of code optimization that gcc does -
-Os is very similar to -O2, but also does code size optimization,
which may, under some circumstances, result in slower performance, but
will also, in other circumstances, result if faster performance. I
typically run my systems at -O2, unless I have a really small L2 cache
on the processor, in which case I will *generally* run -Os - or, if I
have storage media constraints, then I run -Os for the small amount of
storage savings that it gives you - not large enough to worry about in
a typical system, but when dealing with embedded systems, sometimes
every byte counts. :)

-James


gcc man says the `O' is to set levels and I think this may be supposed
to be a 2.

--
[email protected] mailing list



--
[email protected] mailing list

Reply via email to