Unix Technical Forum

CFLAGS for Pentium M

This is a discussion on CFLAGS for Pentium M within the Gentoo Linux Support forums, part of the Unix Operating Systems category; --> Hello I'm planning so install Gentoo on an IBM Tkinkpad T41p. This Notebook has a Pentium M Processor. I ...


Go Back   Unix Technical Forum > Unix Operating Systems > Gentoo Linux Support

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-21-2008, 07:07 AM
Oliver Bohlen
 
Posts: n/a
Default CFLAGS for Pentium M


Hello

I'm planning so install Gentoo on an IBM Tkinkpad T41p. This Notebook has a
Pentium M Processor. I need most stable but fast CFLAGS for this processor.
Can anyone help me?

Bye
Olli
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-21-2008, 07:07 AM
Krzysiek Pawlik
 
Posts: n/a
Default Re: CFLAGS for Pentium M

Oliver Bohlen wrote:

> I'm planning so install Gentoo on an IBM Tkinkpad T41p. This Notebook has
> a Pentium M Processor. I need most stable but fast CFLAGS for this
> processor. Can anyone help me?


Look at my CFLAGS in thread 'CFLAGS -which -Ox??'

--
Krzysiek 'Nelchael' Pawlik RLU #322999 krzysiek.pawlik@people.pl
gentoo base system kernel 2.6.5 GPG Key ID: 0x7E226904
http://fatcat.ftj.agh.edu.pl/~nelchael/ http://www.ps.nq.pl/
"Experience is what you get when you don't get what you want."
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-21-2008, 07:07 AM
Ben Measures
 
Posts: n/a
Default Re: CFLAGS for Pentium M

Oliver Bohlen wrote:
> Hello
>
> I'm planning so install Gentoo on an IBM Tkinkpad T41p. This Notebook has a
> Pentium M Processor. I need most stable but fast CFLAGS for this processor.
> Can anyone help me?
>
> Bye
> Olli


I'm err, sure this has been done before, u sure u tried google group search?

http://groups.google.com/groups?num=...gs&btnG=Search
http://groups.google.com/groups?hl=e...tn G%3DSearch

--
Ben M.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-21-2008, 07:07 AM
Charles Banas
 
Posts: n/a
Default Re: CFLAGS for Pentium M

Oliver Bohlen wrote:

> Hello
>
> I'm planning so install Gentoo on an IBM Tkinkpad T41p. This Notebook has a
> Pentium M Processor. I need most stable but fast CFLAGS for this processor.
> Can anyone help me?
>
> Bye
> Olli


nice laptop.

after my discussion with Krzysiek in another thread, i think i finally
understand what the right optimization would be.

CFLAGS="-O3 -march=pentium4 -mfpmath=sse,387 -malign-double -mmmx -msse
-msse2 -fomit-frame-pointer -funroll-loops"

Krzysiek, please correct or confirm!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-21-2008, 07:08 AM
phil reither
 
Posts: n/a
Default Re: CFLAGS for Pentium M

Charles Banas polluted the internet with:

> after my discussion with Krzysiek in another thread, i think i finally
> understand what the right optimization would be.
>
> CFLAGS="-O3 -march=pentium4 -mfpmath=sse,387 -malign-double -mmmx -msse
> -msse2 -fomit-frame-pointer -funroll-loops"



is the "pentium m" we are talking about here the "pentium 4m"?
or are those two different cpus ?


--
.......cheers................
....phil reither.............

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-21-2008, 07:08 AM
Krzysiek Pawlik
 
Posts: n/a
Default Re: CFLAGS for Pentium M

Charles Banas wrote:

>> I'm planning so install Gentoo on an IBM Tkinkpad T41p. This Notebook has
>> a Pentium M Processor. I need most stable but fast CFLAGS for this
>> processor. Can anyone help me?

>
> nice laptop.
>
> after my discussion with Krzysiek in another thread, i think i finally
> understand what the right optimization would be.
>
> CFLAGS="-O3 -march=pentium4 -mfpmath=sse,387 -malign-double -mmmx -msse
> -msse2 -fomit-frame-pointer -funroll-loops"
>
> Krzysiek, please correct or confirm!




I have a P4M laptop too

Don't use -O3 for production system. Why? O3 doesn't give as much increase
in speed if copared with O2, but makes the compilation a lot longer. It
simply isn't worth it. Besides using 03 uses so called 'not-safe'
optimizations - they can render your system unstable (rare, but possible).
O2 applies (almost) all safe optimizations, and thus it's the best choice
for production systems.

BTW.
Charles add the '-pipe' to CFLAGS - it will decrease compilation time
(especially with huge C++ based projects (eg. OOo, KDE))

--
Krzysiek 'Nelchael' Pawlik RLU #322999 krzysiek.pawlik@people.pl
gentoo base system kernel 2.6.5 GPG Key ID: 0x7E226904
http://fatcat.ftj.agh.edu.pl/~nelchael/ http://www.ps.nq.pl/
"Experience is what you get when you don't get what you want."
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-21-2008, 07:08 AM
Krzysiek Pawlik
 
Posts: n/a
Default Re: CFLAGS for Pentium M

phil reither wrote:

> is the "pentium m" we are talking about here the "pentium 4m"?
> or are those two different cpus ?


For both CPUs same flags apply.

--
Krzysiek 'Nelchael' Pawlik RLU #322999 krzysiek.pawlik@people.pl
gentoo base system kernel 2.6.5 GPG Key ID: 0x7E226904
http://fatcat.ftj.agh.edu.pl/~nelchael/ http://www.ps.nq.pl/
"Experience is what you get when you don't get what you want."
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-21-2008, 07:08 AM
Bernhard Stiftner
 
Posts: n/a
Default Re: CFLAGS for Pentium M

Charles Banas wrote:

> after my discussion with Krzysiek in another thread, i think i finally
> understand what the right optimization would be.
>
> CFLAGS="-O3 -march=pentium4 -mfpmath=sse,387 -malign-double -mmmx -msse
> -msse2 -fomit-frame-pointer -funroll-loops"
>
> Krzysiek, please correct or confirm!


The Pentium M is actually based on the Pentium 3, therefore I would not not
recommend to use "-march=pentium4". However the "Pentium 4-M" is an almost
unmodified Pentium 4 (at least so I've been told). Despite their similar
names, "Pentium M" and "Pentium 4-M" are very different CPUs. Don't confuse
them!

I'm running Gentoo on a Pentium M notebook (Maxdata Pro 8000X). These CFLAGS
seem to work without problems:
CFLAGS="-O2 -march=pentium3 -mmmx -msse -funroll-loops -fomit-frame-pointer
-fforce-addr -frename-registers -fprefetch-loop-arrays -falign-functions=64
-pipe"

HAND
Bernhard

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 02-21-2008, 07:08 AM
Charles Banas
 
Posts: n/a
Default Re: CFLAGS for Pentium M

Krzysiek Pawlik wrote:
>
> I have a P4M laptop too
>

then your advice would be the most helpful.

> Don't use -O3 for production system. Why? O3 doesn't give as much increase
> in speed if copared with O2, but makes the compilation a lot longer. It
> simply isn't worth it. Besides using 03 uses so called 'not-safe'
> optimizations - they can render your system unstable (rare, but possible).
> O2 applies (almost) all safe optimizations, and thus it's the best choice
> for production systems.
>

which i knew, but i didn't think the three flags -O3 introduce made such
negative changes (in addition to the minor performance gain.

> BTW.
> Charles add the '-pipe' to CFLAGS - it will decrease compilation time
> (especially with huge C++ based projects (eg. OOo, KDE))
>

i realize that, i just forgot it. i normally have -pipe in there, i
just forgot to add it this time.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 02-21-2008, 07:08 AM
Charles Banas
 
Posts: n/a
Default Re: CFLAGS for Pentium M

Bernhard Stiftner wrote:

>
> The Pentium M is actually based on the Pentium 3, therefore I would not not
> recommend to use "-march=pentium4". However the "Pentium 4-M" is an almost
> unmodified Pentium 4 (at least so I've been told). Despite their similar
> names, "Pentium M" and "Pentium 4-M" are very different CPUs. Don't confuse
> them!
>

i actually checked the specs on the IBM laptop in question and saw it
was a recent model with pentium-4 specs. although, i did think the
speeds were a bit low for a Pentium 4. in any case, i deduced form the
specs that it was a Pentium 4. am i wrong?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:03 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com