On Thu, 7 Mar 2002 16:36:15 +0100 Erik Trulsson <[EMAIL PROTECTED]> wrote:
> > > > I've tested it with : > > > > > > > > cc -O6 -o malloc_test malloc_test.c > > > > > > That -O6 does not look right from here. Do we support anything over -O2? > > > > ISTR that -On is exactly the same for -O2 for n > 2; or is this stale info? > > Maybe GCC 3.x supports higher optimization levels; still, I don't think > > this would make any significant difference. > > n > 3 actually. The difference between -O2 and -O3 is that -O3 enables > inlining of functions. This usually makes the generated code larger, > and sometimes faster (and sometimes slower.) > > FreeBSD does not officially support anything above -O since there have > been reports of bad code generated when compiling with -O2 or higher. to everybody who doesn't believe that: it really generates bad code. i've been having severe problems with my tcp and udp stack lately (on a i586/mmx machine). guess what, -O2 resulted in code which >>sometimes<< generated bad tcp and/or udp checksums (depending on ip). i didn't investigate any further, but believe me: not being able to access some dns servers is a pain in the ass. cheerz corecode -- /"\ http://corecode.ath.cx/ \ / \ ASCII Ribbon Campaign / \ Against HTML Mail and News
msg32583/pgp00000.pgp
Description: PGP signature