Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Cflags 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
snekiepete
Guru
Guru


Joined: 07 May 2003
Posts: 306
Location: WISCONSIN

PostPosted: Tue Jun 24, 2003 11:11 pm    Post subject: Cflags question Reply with quote

I have done quite abit of searching for this issue and have not found anything specific about this, is it beneficial to have -march=XXXXX and -mcpu=XXXXX in the cflags section? or should it just be one or the other.

does anyone have any recommendatins for a mobile celeron 1.2 ghz?
Back to top
View user's profile Send private message
Rick
Tux's lil' helper
Tux's lil' helper


Joined: 18 Dec 2002
Posts: 141

PostPosted: Tue Jun 24, 2003 11:24 pm    Post subject: Reply with quote

yes, it does speed up the compiling

look here for the settings
_________________
Have you ever noticed how stable windows is?
Neither have I :D
Back to top
View user's profile Send private message
snekiepete
Guru
Guru


Joined: 07 May 2003
Posts: 306
Location: WISCONSIN

PostPosted: Tue Jun 24, 2003 11:35 pm    Post subject: Reply with quote

so how does this look?

cflags="-march=pentium3 -mcpu=pentium4 -Os -pipe -fomit-frame-pointer -mmmx"
Back to top
View user's profile Send private message
paranode
l33t
l33t


Joined: 06 Mar 2003
Posts: 679
Location: Texas

PostPosted: Wed Jun 25, 2003 2:20 am    Post subject: Reply with quote

snekiepete wrote:
so how does this look?

cflags="-march=pentium3 -mcpu=pentium4 -Os -pipe -fomit-frame-pointer -mmmx"


Just depends on what you're looking for. -march will imply -mcpu of the same type unless specified as you've done. Your settings will eliminate the integer overflow thing with GCC 3.2.2, but possibly at the expense of speed. I've never had problems with -march=pentium4. -mmmx probably won't do anything as GCC doesn't really use that flag, since the necessary stuff is implied with -march.
_________________
Meh.
Back to top
View user's profile Send private message
snekiepete
Guru
Guru


Joined: 07 May 2003
Posts: 306
Location: WISCONSIN

PostPosted: Wed Jun 25, 2003 2:35 am    Post subject: Reply with quote

I have had some compilation problems with -march=pentium4. I have had a hard time finding out what exactly I should use here. My cat /proc/cpuinfo does not give me any good information based on the searches I've done so far. I would post my output, but I am compiling at the moment.
Back to top
View user's profile Send private message
pi-cubic
Tux's lil' helper
Tux's lil' helper


Joined: 25 May 2003
Posts: 143

PostPosted: Wed Jun 25, 2003 9:57 am    Post subject: Reply with quote

you can change (X11) with ctlr+alt+fxx your terminal, a compilation-process is no barrier as long as you don't change some system-settings affecting the compilation.
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