RE: Increase in code size for c++ applications using GCC-4.4.1

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
Thank you for your suggestions.

> I don't know what your test case is,
We do understand this but unfortunately we cannot disclose the test case.

> If code size is of primary
> concern, you should compile with -Os.
We did try compiling with "-Os" option but it was of no help. The size of the text section remained the same.

> experiment with -finline-limit=NNN.	
This too wasn't much of a help to us.

Regards,
Suma Sharma

-----Original Message-----
From: Ian Lance Taylor [mailto:iant@xxxxxxxxxx] 
Sent: Friday, August 28, 2009 7:43 PM
To: Suma Sharma
Cc: gcc-help@xxxxxxxxxxx
Subject: Re: Increase in code size for c++ applications using GCC-4.4.1

Suma Sharma <Suma.Sharma@xxxxxxxxxxxxxxx> writes:

> While doing benchmarking of the above two toolchains (for C++
> application) it was observed that the size of the text section for
> H8-Toolchain-I had increased by approximately 66% as compared to that
> of H8-Toolchain-II.

I don't know what your test case is, but my first guess would be that
this is due to changes in the inliner.  If code size is of primary
concern, you should compile with -Os.  If it is only secondary, then use
-O2 and experiment with -finline-limit=NNN.

Ian




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux