Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

Cflags question for intel core 2 duo

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
11 posts • Page 1 of 1
Author
Message
0000000000000
Apprentice
Apprentice
Posts: 163
Joined: Fri Mar 21, 2008 11:21 pm

Cflags question for intel core 2 duo

  • Quote

Post by 0000000000000 » Thu Mar 12, 2009 4:41 am

I have an Intel Core 2 Duo T6400 and am running 64bit on GCC-4.3.3. I currently have as my Cflags "-march=nocona -O2 -pipe" But read that I can use "-march=core2" with this GCC version.

Would there be any reasonable difference in anything if I were to change this and recompile world and system?

Also, what's this -funroll-loops I keep hearing about from trolls on 4chan?


Thanks.





(unrelated, my kernel (2.6.29-r6 from anholt's drm-intel git branch) only allows the sparse memory model as opposed to flat which I'd been using on my old computer, and I notice free -m lists 3814mb of memory as opposed to the 4096 I actually have. Is this related to the memory model, and/or why is sparse the only option?)
Top
desultory
Bodhisattva
Bodhisattva
User avatar
Posts: 9410
Joined: Fri Nov 04, 2005 6:07 pm

  • Quote

Post by desultory » Thu Mar 12, 2009 6:10 am

0000000000000 wrote:Would there be any reasonable difference in anything if I were to change this and recompile world and system?
For less intensive applications the difference would not be noticeable, for encoding or other similarly intensive uses it may well be noticeable.
0000000000000 wrote:Also, what's this -funroll-loops I keep hearing about from trolls on 4chan?
An old joke, since hijacked for some blog.
0000000000000 wrote:(unrelated, my kernel (2.6.29-r6 from anholt's drm-intel git branch) only allows the sparse memory model as opposed to flat which I'd been using on my old computer, and I notice free -m lists 3814mb of memory as opposed to the 4096 I actually have. Is this related to the memory model, and/or why is sparse the only option?)
It could also be due in part to a shared memory video chip set and the memory hole.
Top
digrouz
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 124
Joined: Sat Feb 19, 2005 8:50 am
Location: Mouscron, Belgium

  • Quote

Post by digrouz » Thu Mar 12, 2009 11:57 am

with gcc 4.3.3 you can also use -march=native which should enable the best cflags for you cpu
There are 10 types of people in the world: those who understand binary, and those who don't.
Top
d2_racing
Bodhisattva
Bodhisattva
User avatar
Posts: 13047
Joined: Mon Apr 25, 2005 2:25 pm
Location: Ste-Foy,Canada
Contact:
Contact d2_racing
Website

  • Quote

Post by d2_racing » Thu Mar 12, 2009 12:32 pm

In fact, nowadays I always use -march=native and it's GCC that set my Cflags and my CXXFlags.
Top
digrouz
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 124
Joined: Sat Feb 19, 2005 8:50 am
Location: Mouscron, Belgium

  • Quote

Post by digrouz » Thu Mar 12, 2009 1:01 pm

but to do that you need to unmask gcc-4.4.3 because the stable is 4.2.1
There are 10 types of people in the world: those who understand binary, and those who don't.
Top
depontius
Advocate
Advocate
Posts: 3533
Joined: Wed May 05, 2004 4:06 pm

  • Quote

Post by depontius » Thu Mar 12, 2009 5:01 pm

digrouz wrote:but to do that you need to unmask gcc-4.4.3 because the stable is 4.2.1
I hope that's a typo, because my x86 stable is 4.1.2.
.sigs waste space and bandwidth
Top
digrouz
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 124
Joined: Sat Feb 19, 2005 8:50 am
Location: Mouscron, Belgium

  • Quote

Post by digrouz » Thu Mar 12, 2009 5:11 pm

Yes sorry you are right! ;)
There are 10 types of people in the world: those who understand binary, and those who don't.
Top
FizzyWidget
Veteran
Veteran
User avatar
Posts: 1135
Joined: Fri Nov 21, 2008 9:52 am
Location: 127.0.0.1

  • Quote

Post by FizzyWidget » Thu Mar 12, 2009 5:36 pm

save's me asking the same thing about my laptop - but i will ask this, is ssse3 a valid useflag?
I know 43 ways to kill with a SKITTLE, so taste my rainbow bitch.
Top
danomac
l33t
l33t
User avatar
Posts: 881
Joined: Sat Nov 06, 2004 6:30 am
Location: Vancouver, BC

  • Quote

Post by danomac » Thu Mar 12, 2009 5:57 pm

Carps wrote:save's me asking the same thing about my laptop - but i will ask this, is ssse3 a valid useflag?
Yes. Some packages have specific optimizations for SSSE3.
Top
0000000000000
Apprentice
Apprentice
Posts: 163
Joined: Fri Mar 21, 2008 11:21 pm

  • Quote

Post by 0000000000000 » Fri Mar 13, 2009 12:47 am

> void null # grep sse4 /proc/cpuinfo | tail -n 1 | awk '{print( $49 ) }'
> sse4_1


Anything I can do with that one?

The internets suggest "media-libs/spandsp" is the only package that has such a USE


Edit: nevermind, Desultory's post cleared that up
Last edited by 0000000000000 on Fri Mar 13, 2009 12:49 am, edited 1 time in total.
Top
desultory
Bodhisattva
Bodhisattva
User avatar
Posts: 9410
Joined: Fri Nov 04, 2005 6:07 pm

  • Quote

Post by desultory » Fri Mar 13, 2009 12:48 am

Code: Select all

$ euse -i ssse3
global use flags (searching: ssse3)
************************************************************
no matching entries found

local use flags (searching: ssse3)
************************************************************
[-    ] ssse3 (media-video/ffmpeg):
faster floating point optimization for SSSE3 capable chips (Intel Core 2 and later chips)

[-    ] ssse3 (media-video/mplayer):
faster floating point optimization for SSSE3 capable chips (Intel Core 2 and later chips)

Top
Post Reply

11 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic