Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
-march question
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Sargonas
Apprentice
Apprentice


Joined: 10 Feb 2003
Posts: 213
Location: user@localhost

PostPosted: Wed Feb 12, 2003 7:43 pm    Post subject: -march question Reply with quote

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
View user's profile Send private message
bsolar
Bodhisattva
Bodhisattva


Joined: 12 Jan 2003
Posts: 2764

PostPosted: Wed Feb 12, 2003 7:45 pm    Post subject: Reply with quote

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
View user's profile Send private message
Sargonas
Apprentice
Apprentice


Joined: 10 Feb 2003
Posts: 213
Location: user@localhost

PostPosted: Wed Feb 12, 2003 10:00 pm    Post subject: Reply with quote

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
View user's profile Send private message
bsolar
Bodhisattva
Bodhisattva


Joined: 12 Jan 2003
Posts: 2764

PostPosted: Wed Feb 12, 2003 10:05 pm    Post subject: Reply with quote

-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
View user's profile Send private message
Sargonas
Apprentice
Apprentice


Joined: 10 Feb 2003
Posts: 213
Location: user@localhost

PostPosted: Thu Feb 13, 2003 9:32 pm    Post subject: Reply with quote

wow I redid my system last night with -march=pentium4 -O3 -pipe -fomit-frame-pointer


8O WOW 8O

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
View user's profile Send private message
bsolar
Bodhisattva
Bodhisattva


Joined: 12 Jan 2003
Posts: 2764

PostPosted: Thu Feb 13, 2003 9:45 pm    Post subject: Reply with quote

Sesshomaru wrote:
wow I redid my system last night with -march=pentium4 -O3 -pipe -fomit-frame-pointer


8O WOW 8O

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum