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 ...
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| 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." |
| |||
| 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. |
| |||
| 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! |
| |||
| 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............. |
| |||
| 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." |
| |||
| 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." |
| |||
| 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 |
| |||
| 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. |
| ||||
| 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? |