This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: mixing optimized and unoptimized code?
- To: Marat Boshernitsan <maratb at CS dot Berkeley dot EDU>
- Subject: Re: mixing optimized and unoptimized code?
- From: David Starner <dvdeug at x8b4e53cd dot dhcp dot okstate dot edu>
- Date: Sun, 5 Mar 2000 17:27:37 -0600
- Cc: gcc at gcc dot gnu dot org
- References: <tfvya7xow7p.fsf@cypress.CS.Berkeley.EDU>
- Reply-To: dstarner98 at aasaa dot ofe dot org
On Sun, Mar 05, 2000 at 03:04:10PM -0800, Marat Boshernitsan wrote:
>
> Hello,
>
> In my application I have several source files for which latest gcc is
> unable to produce optimized code (runs out of memory on a 256M Ultra10
> with -O1). So, I was wondering what would be the implications of
> compiling those few sources unoptimized and linking with the rest of the
> application which is optimized? Are there any optimizations I should
> avoid? (I am thinking of those that change function call conventions)?
-O should never change function call conventions. Mixing unoptimized
code with optimized code should never cause a problem.
> A related question: which optimizations are not especially memory hungry?
> I was thinking I could selectively turn on *some* of them on those
> problematic sources.
Someone else will have to help you here. But do you know why are these
are running out of memory? Are they large files, or template heavy, or
large functions, or convulted code-wise? If the GCC people know where
the hot spots are, they can sometimes do amazing improvements in the
compiler.
--
David Starner - dstarner98@aasaa.ofe.org
Only a nerd would worry about wrong parentheses with
square brackets. But that's what mathematicians are.
-- Dr. Burchard, math professor at OSU