View previous topic :: View next topic |
Author |
Message |
Sargonas Apprentice
Joined: 10 Feb 2003 Posts: 213 Location: user@localhost
|
Posted: Wed Feb 12, 2003 7:43 pm Post subject: -march question |
|
|
I have an Intel Pentium 4 mobile processor and I dont know a whole lot about hardware and march flags. I am thinking of redoing my system and want to get it working the fastest possible so I was wondering what flags should I set for march?
Lasttime
march=pentium4 -03 -pipe
it came back that -03 was an unkown switch? Any ideas on what I did wrong? Thanks in advance! _________________ I do not consider it an insult, but rather a compliment to be called an agnostic. I do not pretend to know where many ignorant men are sure -- that is all Agnosticism means. - Clarence Darrow |
|
Back to top |
|
|
bsolar Bodhisattva
Joined: 12 Jan 2003 Posts: 2764
|
Posted: Wed Feb 12, 2003 7:45 pm Post subject: |
|
|
It has to be -O3 (big letter "o"). Maybe you wrote zero-3, that's wrong.
PS: you also might be interested in this thread. _________________ I may not agree with what you say, but I'll defend to the death your right to say it. |
|
Back to top |
|
|
Sargonas Apprentice
Joined: 10 Feb 2003 Posts: 213 Location: user@localhost
|
Posted: Wed Feb 12, 2003 10:00 pm Post subject: |
|
|
Yeah I did have 03 not O3.... I see now. What does this mean? _________________ I do not consider it an insult, but rather a compliment to be called an agnostic. I do not pretend to know where many ignorant men are sure -- that is all Agnosticism means. - Clarence Darrow |
|
Back to top |
|
|
bsolar Bodhisattva
Joined: 12 Jan 2003 Posts: 2764
|
Posted: Wed Feb 12, 2003 10:05 pm Post subject: |
|
|
-O means Optimization. You can do -O[1|2|3|s] mainly, being the higher number the stronger the optimization. -Os is a "size" optimization, to get slim binaries. I use that because I think loading time is more important than that little % I'd get from -O3, but is an opinion...
If interested see the gcc documentation. _________________ I may not agree with what you say, but I'll defend to the death your right to say it. |
|
Back to top |
|
|
Sargonas Apprentice
Joined: 10 Feb 2003 Posts: 213 Location: user@localhost
|
Posted: Thu Feb 13, 2003 9:32 pm Post subject: |
|
|
wow I redid my system last night with -march=pentium4 -O3 -pipe -fomit-frame-pointer
WOW
My system is noticably faster and using less hd space. Thanks! _________________ I do not consider it an insult, but rather a compliment to be called an agnostic. I do not pretend to know where many ignorant men are sure -- that is all Agnosticism means. - Clarence Darrow |
|
Back to top |
|
|
bsolar Bodhisattva
Joined: 12 Jan 2003 Posts: 2764
|
Posted: Thu Feb 13, 2003 9:45 pm Post subject: |
|
|
Sesshomaru wrote: | wow I redid my system last night with -march=pentium4 -O3 -pipe -fomit-frame-pointer
WOW
My system is noticably faster and using less hd space. Thanks! |
Noticeably faster maybe, but are you sure the binaries are smaller???
-O3 should build bigger binaries... _________________ I may not agree with what you say, but I'll defend to the death your right to say it. |
|
Back to top |
|
|
|