Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
CFLAGS Central (Part 1)
View unanswered posts
View posts from last 24 hours

Goto page 1, 2, 3 ... 35, 36, 37  Next  
This topic is locked: you cannot edit posts or make replies.    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
AutoBot
l33t
l33t


Joined: 22 Apr 2002
Posts: 968
Location: Usually Out

PostPosted: Fri Jun 21, 2002 2:18 pm    Post subject: CFLAGS Central (Part 1) Reply with quote

I was just curious as to what everyone is using for there CFLAGS, and have you had any issues from them, stability problems, random crashes, etc...etc...

My system was compiled with the following and I have had no problems arise yet:
Code:

CFLAGS="-march=i686 -O3 -pipe -fforce-addr -fomit-frame-pointer -funroll-loops -frerun-loop-opt -frerun-cse-after-loop -falign-functions=4"


[edited only to change thread title - rac]
_________________
This message self destructed a long time ago.


Last edited by AutoBot on Mon Aug 19, 2002 1:01 am; edited 1 time in total
Back to top
View user's profile Send private message
DArtagnan
l33t
l33t


Joined: 30 Apr 2002
Posts: 942
Location: Israel, Jerusalem

PostPosted: Fri Jun 21, 2002 2:37 pm    Post subject: Reply with quote

I have P2 300 Mhz 256 RAM and my CFLAGS are:
# Pentium Pro/Pentium II/Pentium III+/Pentium 4/Athlon optimized (but binaries
# will run on any x86 system)
CHOST="i686-pc-linux-gnu"
CFLAGS="-mcpu=i686 -O3 -pipe"
CXXFLAGS="-mcpu=i686 -O3 -pipe"

My system is a little slow...do you thing your flags can make my system faster?
_________________
All for one and one for All
--

MACPRO machine...
Back to top
View user's profile Send private message
delta407
Bodhisattva
Bodhisattva


Joined: 23 Apr 2002
Posts: 2876
Location: Chicago, IL

PostPosted: Fri Jun 21, 2002 2:39 pm    Post subject: Reply with quote

I'm very stable with -mcpu=i686 -O3 -pipe -fomit-frame-pointer, and quite happy with the performance. :D
Back to top
View user's profile Send private message
DArtagnan
l33t
l33t


Joined: 30 Apr 2002
Posts: 942
Location: Israel, Jerusalem

PostPosted: Fri Jun 21, 2002 2:40 pm    Post subject: Reply with quote

what computer?
_________________
All for one and one for All
--

MACPRO machine...
Back to top
View user's profile Send private message
delta407
Bodhisattva
Bodhisattva


Joined: 23 Apr 2002
Posts: 2876
Location: Chicago, IL

PostPosted: Fri Jun 21, 2002 2:43 pm    Post subject: Reply with quote

That's my desktop. Production servers running Gentoo are equally conservative, though, and have good uptimes (i.e. reboot only for new kernels every 6 weeks or so).
Back to top
View user's profile Send private message
S_aIN_t
Guru
Guru


Joined: 11 May 2002
Posts: 488
Location: Ottawa

PostPosted: Fri Jun 21, 2002 2:43 pm    Post subject: Reply with quote

hmm. those are some interesting options.. thanks AutoBot.. i will try to rebuild my system with the flags you are using..

hopefully nothing will break..

i am also considering installing gcc-3.1 and rebuilding with that.. but that is another day.
Back to top
View user's profile Send private message
AutoBot
l33t
l33t


Joined: 22 Apr 2002
Posts: 968
Location: Usually Out

PostPosted: Fri Jun 21, 2002 2:47 pm    Post subject: Reply with quote

That was the reason I started this thread, to give people an idea of what flags can be used without breaking things :)
_________________
This message self destructed a long time ago.


Last edited by AutoBot on Fri Jun 21, 2002 2:49 pm; edited 1 time in total
Back to top
View user's profile Send private message
AutoBot
l33t
l33t


Joined: 22 Apr 2002
Posts: 968
Location: Usually Out

PostPosted: Fri Jun 21, 2002 2:48 pm    Post subject: Reply with quote

pacman wrote:
I have P2 300 Mhz 256 RAM and my CFLAGS are:
# Pentium Pro/Pentium II/Pentium III+/Pentium 4/Athlon optimized (but binaries
# will run on any x86 system)
CHOST="i686-pc-linux-gnu"
CFLAGS="-mcpu=i686 -O3 -pipe"
CXXFLAGS="-mcpu=i686 -O3 -pipe"

My system is a little slow...do you thing your flags can make my system faster?

You would gain some speed for sure by adding:
Code:

-fomit-frame-pointer

_________________
This message self destructed a long time ago.
Back to top
View user's profile Send private message
DArtagnan
l33t
l33t


Joined: 30 Apr 2002
Posts: 942
Location: Israel, Jerusalem

PostPosted: Fri Jun 21, 2002 2:50 pm    Post subject: Reply with quote

AutoBot wrote:
pacman wrote:
I have P2 300 Mhz 256 RAM and my CFLAGS are:
# Pentium Pro/Pentium II/Pentium III+/Pentium 4/Athlon optimized (but binaries
# will run on any x86 system)
CHOST="i686-pc-linux-gnu"
CFLAGS="-mcpu=i686 -O3 -pipe"
CXXFLAGS="-mcpu=i686 -O3 -pipe"

My system is a little slow...do you thing your flags can make my system faster?

You would gain some speed for sure by adding:
Code:

-fomit-frame-pointer


Like that?

CHOST="i686-pc-linux-gnu -fomit-frame-pointer"
CFLAGS="-mcpu=i686 -O3 -pipe -fomit-frame-pointer"
CXXFLAGS="-mcpu=i686 -O3 -pipe -fomit-frame-pointer"
_________________
All for one and one for All
--

MACPRO machine...
Back to top
View user's profile Send private message
delta407
Bodhisattva
Bodhisattva


Joined: 23 Apr 2002
Posts: 2876
Location: Chicago, IL

PostPosted: Fri Jun 21, 2002 2:55 pm    Post subject: Reply with quote

No, see, you don't put optimizations in your CHOST line...
Back to top
View user's profile Send private message
DArtagnan
l33t
l33t


Joined: 30 Apr 2002
Posts: 942
Location: Israel, Jerusalem

PostPosted: Fri Jun 21, 2002 2:57 pm    Post subject: Reply with quote

delta407 wrote:
No, see, you don't put optimizations in your CHOST line...


As you said i have no clue of those flags so it seems to be:
CHOST="i686-pc-linux-gnu"
CFLAGS="-mcpu=i686 -O3 -pipe -fomit-frame-pointer"
CXXFLAGS="-mcpu=i686 -O3 -pipe -fomit-frame-pointer"

How it can help my P2?

Or i can use?
CHOST="i686-pc-linux-gnu"
CFLAGS="-mcpu=i686 -O3 -pipe"
CXXFLAGS="-mcpu=i686 -O3 -pipe"

Help :-)
_________________
All for one and one for All
--

MACPRO machine...
Back to top
View user's profile Send private message
delta407
Bodhisattva
Bodhisattva


Joined: 23 Apr 2002
Posts: 2876
Location: Chicago, IL

PostPosted: Fri Jun 21, 2002 3:00 pm    Post subject: Reply with quote

Optimizations go on the CFLAGS/CXXFLAGS lines. BTW, -fomit-frame-pointer frees up an extra register, which gives the processor more room to play with numbers without having to touch the RAM. This gives many apps a big performance increase.
Back to top
View user's profile Send private message
DArtagnan
l33t
l33t


Joined: 30 Apr 2002
Posts: 942
Location: Israel, Jerusalem

PostPosted: Fri Jun 21, 2002 3:03 pm    Post subject: Reply with quote

Now I'm really confused because of you :-)

CHOST="i686-pc-linux-gnu"
CFLAGS="-mcpu=i686 -O3 -pipe -fomit-frame-pointer"
CXXFLAGS="-mcpu=i686 -O3 -pipe -fomit-frame-pointer"

CHOST="i686-pc-linux-gnu"
CFLAGS="-mcpu=i686 -O3 -pipe"
CXXFLAGS="-mcpu=i686 -O3 -pipe"


make my day :p
_________________
All for one and one for All
--

MACPRO machine...
Back to top
View user's profile Send private message
AutoBot
l33t
l33t


Joined: 22 Apr 2002
Posts: 968
Location: Usually Out

PostPosted: Fri Jun 21, 2002 3:08 pm    Post subject: Reply with quote

pacman wrote:
Now I'm really confused because of you :-)

CHOST="i686-pc-linux-gnu"
CFLAGS="-mcpu=i686 -O3 -pipe -fomit-frame-pointer"
CXXFLAGS="-mcpu=i686 -O3 -pipe -fomit-frame-pointer"

CHOST="i686-pc-linux-gnu"
CFLAGS="-mcpu=i686 -O3 -pipe"
CXXFLAGS="-mcpu=i686 -O3 -pipe"


make my day :p

This is correct pacman:

Code:

CHOST="i686-pc-linux-gnu"
CFLAGS="-mcpu=i686 -O3 -pipe -fomit-frame-pointer"
CXXFLAGS="-mcpu=i686 -O3 -pipe -fomit-frame-pointer"


And if you want to recompile your entire system do the following:

Code:

emerge gentoolkit  #only if you dont currently have it
qpkg -nc -I | sort | uniq | NOCOLOR=true xargs emerge 2>&1 >qpkg-make.log

_________________
This message self destructed a long time ago.
Back to top
View user's profile Send private message
DArtagnan
l33t
l33t


Joined: 30 Apr 2002
Posts: 942
Location: Israel, Jerusalem

PostPosted: Fri Jun 21, 2002 3:12 pm    Post subject: Reply with quote

Please lemme know what this line does :-)

qpkg -nc -I | sort | uniq | NOCOLOR=true xargs emerge 2>&1 >qpkg-make.log
_________________
All for one and one for All
--

MACPRO machine...
Back to top
View user's profile Send private message
AutoBot
l33t
l33t


Joined: 22 Apr 2002
Posts: 968
Location: Usually Out

PostPosted: Fri Jun 21, 2002 3:18 pm    Post subject: Reply with quote

Recompiles your entire system with the new flags you have set in /etc/make.conf ;)
_________________
This message self destructed a long time ago.
Back to top
View user's profile Send private message
DArtagnan
l33t
l33t


Joined: 30 Apr 2002
Posts: 942
Location: Israel, Jerusalem

PostPosted: Fri Jun 21, 2002 3:21 pm    Post subject: Reply with quote

Code:

emerge gentoolkit  #only if you dont currently have it
qpkg -nc -I | sort | uniq | NOCOLOR=true xargs emerge 2>&1 >qpkg-make.log


Really? Then "emerge -e world" does what?
How long it can take?
_________________
All for one and one for All
--

MACPRO machine...
Back to top
View user's profile Send private message
AutoBot
l33t
l33t


Joined: 22 Apr 2002
Posts: 968
Location: Usually Out

PostPosted: Fri Jun 21, 2002 3:27 pm    Post subject: Reply with quote

Ah it would appear with the new portage that emerge -e world does indeed work correctly now, so disreguard and use it instead.
_________________
This message self destructed a long time ago.
Back to top
View user's profile Send private message
DArtagnan
l33t
l33t


Joined: 30 Apr 2002
Posts: 942
Location: Israel, Jerusalem

PostPosted: Fri Jun 21, 2002 3:29 pm    Post subject: Reply with quote

Now , after I know that i need to run "emerge -e world", how long it will take?
_________________
All for one and one for All
--

MACPRO machine...
Back to top
View user's profile Send private message
AutoBot
l33t
l33t


Joined: 22 Apr 2002
Posts: 968
Location: Usually Out

PostPosted: Fri Jun 21, 2002 3:38 pm    Post subject: Reply with quote

If you have KDE installed (I know you do), well over 24hours judging by your processor.

Code:

time emerge -e world
#let me know how it goes :D

_________________
This message self destructed a long time ago.
Back to top
View user's profile Send private message
DArtagnan
l33t
l33t


Joined: 30 Apr 2002
Posts: 942
Location: Israel, Jerusalem

PostPosted: Fri Jun 21, 2002 3:40 pm    Post subject: Reply with quote

24 Hours?
You wanna my girlfriend to kill me? :-)
_________________
All for one and one for All
--

MACPRO machine...
Back to top
View user's profile Send private message
DArtagnan
l33t
l33t


Joined: 30 Apr 2002
Posts: 942
Location: Israel, Jerusalem

PostPosted: Fri Jun 21, 2002 3:45 pm    Post subject: Reply with quote

AutoBot wrote:
If you have KDE installed (I know you do), well over 24hours judging by your processor.

Code:

time emerge -e world
#let me know how it goes :D


Code:

I entered "emerge -e world" without the "p" flag and it already started to grab source from net :-)

# time emerge -pe world

These are the packages that I would merge, in order.

Calculating world dependencies ...done!
[ebuild  N   ] sys-apps/cronbase-0.01 to /
[ebuild  N   ] sys-apps/groff-1.17.2-r1 to /
...
... to long...
...
[ebuild  N   ] dev-util/cscope-15.3 to /
[ebuild  N   ] app-editors/vim-6.1-r7 to /


real    0m30.437s
user    0m11.241s
sys     0m0.154s

_________________
All for one and one for All
--

MACPRO machine...


Last edited by DArtagnan on Fri Jun 21, 2002 3:54 pm; edited 1 time in total
Back to top
View user's profile Send private message
AutoBot
l33t
l33t


Joined: 22 Apr 2002
Posts: 968
Location: Usually Out

PostPosted: Fri Jun 21, 2002 3:52 pm    Post subject: Reply with quote

Lol I meant let me know how it goes after you re-compile everything.
_________________
This message self destructed a long time ago.
Back to top
View user's profile Send private message
DArtagnan
l33t
l33t


Joined: 30 Apr 2002
Posts: 942
Location: Israel, Jerusalem

PostPosted: Fri Jun 21, 2002 3:53 pm    Post subject: Reply with quote

Ma man ,
I'll kick your ass but u're lucky cuz i like ya :-)
Ok, I'll tell ya
_________________
All for one and one for All
--

MACPRO machine...
Back to top
View user's profile Send private message
DArtagnan
l33t
l33t


Joined: 30 Apr 2002
Posts: 942
Location: Israel, Jerusalem

PostPosted: Fri Jun 21, 2002 3:59 pm    Post subject: Reply with quote

pacman wrote:
24 Hours?
You wanna my girlfriend to kill me? :-)


I promised her that I'll finish as fast as possible to re-compile every thing...:-)
What is more difficult? Gentoo or your woman?
_________________
All for one and one for All
--

MACPRO machine...
Back to top
View user's profile Send private message
Display posts from previous:   
This topic is locked: you cannot edit posts or make replies.    Gentoo Forums Forum Index Portage & Programming All times are GMT
Goto page 1, 2, 3 ... 35, 36, 37  Next
Page 1 of 37

 
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