View previous topic :: View next topic |
Author |
Message |
SLBMEH Apprentice
Joined: 16 Aug 2003 Posts: 299 Location: Pittsburgh, PA
|
Posted: Tue Jan 08, 2008 4:04 pm Post subject: CFLAG questions |
|
|
Are these CFLAGS safe?
gcc-min-expand
gcc-min-heapsize _________________ Steve - Semper Fi |
|
Back to top |
|
|
mikegpitt Advocate
Joined: 22 May 2004 Posts: 3224
|
Posted: Tue Jan 08, 2008 4:20 pm Post subject: Re: CFLAG questions |
|
|
SLBMEH wrote: | Are these CFLAGS safe?
gcc-min-expand
gcc-min-heapsize | Depends what you mean by 'safe'. Those flags are not approved by gentoo, and if you run into problems using them, you will be told to edit them to the default cflags and retry, but they may work for you perfectly. I have personally never used either of those flags, but in the past I experimented with various other flags, and never had any problems. |
|
Back to top |
|
|
SLBMEH Apprentice
Joined: 16 Aug 2003 Posts: 299 Location: Pittsburgh, PA
|
Posted: Tue Jan 08, 2008 4:45 pm Post subject: |
|
|
What I mean by safe is, will they break my install if I use them system-wide? I think they are fairly safe. They do not affect compilation to my knowledge. I believe they only adjust the memory allocation that gcc uses during compiles. _________________ Steve - Semper Fi |
|
Back to top |
|
|
mikegpitt Advocate
Joined: 22 May 2004 Posts: 3224
|
Posted: Tue Jan 08, 2008 4:55 pm Post subject: |
|
|
SLBMEH wrote: | What I mean by safe is, will they break my install if I use them system-wide? I think they are fairly safe. They do not affect compilation to my knowledge. I believe they only adjust the memory allocation that gcc uses during compiles. | I doubt any cflag choice will completely break your installation. I think the worse case scenario will be that a package or two will act a bit weird, and you can fix this by editing the flags back to default. One of the best parts of gentoo is the ability to experiment with things like this... so I'd say go ahead.
I would say to read the gcc man pages to understand fully what those particular optimizations are doing prior to implementing them system wide. |
|
Back to top |
|
|
SLBMEH Apprentice
Joined: 16 Aug 2003 Posts: 299 Location: Pittsburgh, PA
|
Posted: Tue Jan 08, 2008 5:38 pm Post subject: |
|
|
I just looked them up. It basically said that memory allocation is optimized for amounts of ram under 1GB. It said that setting those flags will prevent the garbage collector from initializing as much and will give you a speed increase if you have the resources for it. It also says that it does not do anything to the code size. _________________ Steve - Semper Fi |
|
Back to top |
|
|
|