TIP: Click on subject to list as thread! ANSI
echo: c_echo
to: Tulipant Gergely
from: Jasen Betts
date: 2003-06-10 06:46:06
subject: gcc -O

Hi Tulipant.

03-Jun-03 18:14:38, Tulipant Gergely wrote to Jasen Betts


 JB>> FCBBX: Citizen David advise status of preparation of the device

 TG> Whazzat?
"random" nonsesne

 TG> Yeah. I've read warnings about the RedHat-tampered gcc - which
 TG> they call 2.96 - while compiling different sources. :( Could y'all
 TG> test with some other version

K, I;ce got 3 different versions here, 2 Redhat abd one "DJ"

 TG>>> It does make sense helping the compiler as Ulrich Drepper
 TG>>> recommends:

 TG>>> if (sizeof(int) == sizeof(long) || type == 0)

 TG>>> This way -O2 makes as good a translation as -O1. :)

 JB>> but O0 is worsened....

 TG> That's normal. -O0 produces horrible code (for the sake of
 TG> flawless tracing?), still it generates some advanced code, e.g.
 TG> integer division by constant is compiled into multiplication I
 TG> don't care much about -O0.

 JB>> It may be better to do a #if using something from values.h but
 JB>> you may loose POSIX compatibility that way.

 TG> Why would it be better?

it's not relying on the coompiler...Hmm, dunno if it really is
"better" now,


 -=> Bye <=-

---
* Origin: As King Arthur said: Some days it all seems so feudal. (3:640/1042)
SEEN-BY: 633/267 270
@PATH: 640/1042 531 954 774/605 123/500 106/2000 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.