View previous topic :: View next topic |
Author |
Message |
zaklad n00b
Joined: 11 May 2006 Posts: 40
|
Posted: Thu Jul 20, 2006 4:07 pm Post subject: USE flags for PII Mobile |
|
|
Hi,
What USE flags should be used for a mobile PII?
Should I use CFLAGS="-march=pentium2 -Os ... " or is there something else for mobile proccessors?
Also, does it matter how much ram I have (for the -Os)? As far as I understand the s means the packeges are optimized for size hence suitable for computers with little memory. If I have 128MB or 256MB should I still be using the -Os optimization or should I use -O2?
Thanks,
Gil |
|
Back to top |
|
|
GoofballJM1 Guru
Joined: 22 Mar 2004 Posts: 392 Location: Denver, CO USA
|
Posted: Thu Jul 20, 2006 5:16 pm Post subject: |
|
|
You are asking two questions, right?
Quote: | What USE flags should be used for a mobile PII? |
Whatever your needs require. USE flags are related to what software you are using, not your CPU's architecture.
Quote: | Should I use CFLAGS="-march=pentium2 -Os ... " or is there something else for mobile proccessors? |
That should be fine. The only mobile processors you are going to have to change CFLAGS on are the newer ones (ie. Pentium M's). _________________ "Great spirits have often encountered violent opposition from weak minds." - Albert Einstein |
|
Back to top |
|
|
zaklad n00b
Joined: 11 May 2006 Posts: 40
|
Posted: Thu Jul 20, 2006 6:16 pm Post subject: |
|
|
GoofballJM1 wrote: |
That should be fine. The only mobile processors you are going to have to change CFLAGS on are the newer ones (ie. Pentium M's). |
Thanks GoofballJM1!
What about the optimization part?
I currently have 164MB and are thinking of upgrading to 256MB. Should I still be using the -Os for this amount of memory?
(The -Os is about small memory, isn't it?)
Thanks again! |
|
Back to top |
|
|
Lupin_the_3rd Apprentice
Joined: 03 Apr 2005 Posts: 168
|
Posted: Fri Jul 21, 2006 2:42 am Post subject: |
|
|
GoofballJM1 wrote: | You are asking two questions, right?
Quote: | What USE flags should be used for a mobile PII? |
Whatever your needs require. USE flags are related to what software you are using, not your CPU's architecture.
|
Not necessarily. "-fomit-frame-pointer" frees up a CPU register which can give you a little performance boost on x86 (since x86 has so few registers). This has little or no effect however on most RISC platforms which typically have a lot of available CPU registers (far more than x86 anyways). Also, the GCC optimizations have different effects on different CPU's - on some arch's, you get a big boost, on others you simply get longer compile times with no noticible performance boost.
Just FYI. _________________ Compaq XP1000 Alpha EV67 667Mhz w/ 2GB ECC
32bit PCI: ATI Radeon 9100 (DRI works!)
32bit PCI: Generic Firewire 400 card
64bit PCI: BCM5703 Gig-E (Compaq NC7771)
64bit PCI: Sil3124 SATA w/ mdadm RAID1 (pair of WD VelociRaptors) |
|
Back to top |
|
|
|