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

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
open_coder
Tux's lil' helper
Tux's lil' helper


Joined: 09 Sep 2004
Posts: 103

PostPosted: Sun Dec 11, 2005 6:35 pm    Post subject: -march/-mcpu Reply with quote

which one do i use. In the manual it says -march, but the file that i downloaded already has it set with -mcpu. Is this a problem, or am I just being overtly-cautious?

--Alex
_________________
Will work for bandwidth
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Sun Dec 11, 2005 6:50 pm    Post subject: Reply with quote

Moved from Installing Gentoo to Duplicate Threads.
Start here: https://forums.gentoo.org/viewtopic-t-5717.html

Don't worry about -march or -mpcu. They are mostly equal.
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
curtis119
Bodhisattva
Bodhisattva


Joined: 10 Mar 2003
Posts: 2160
Location: Phoenix, AZ USA, North America, Earth, SOL System, Milky Way, The Universe, The Cosmos, and Beyond.

PostPosted: Sun Dec 11, 2005 8:05 pm    Post subject: Re: -march/-mcpu Reply with quote

open_coder wrote:
which one do i use. In the manual it says -march, but the file that i downloaded already has it set with -mcpu. Is this a problem, or am I just being overtly-cautious?

--Alex


-mcpu is deprecated in >gcc-3.4 use -mtune now.

-mtune=pentium4 will tune the kernel to run on that cpu but also make it generic enough to run on any cpu of that type (any i386 or higher). If you want a portable kernel that can run on any i386 (like the gentoo installer cd's) then use this option.

-march=pentium4 will only contain code specifically for a pentium4 and will not run on any other type of cpu. If you want a kernel that is optimized as much as possible for your specific cpu and it will only run on that cpu then use this option.

-march implies mtune so you don't need to set them both.
_________________
Gentoo: it's like wiping your ass with silk.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads 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