This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: libstdc++


On 08/24/2012 08:46 AM, naga raj wrote:
> Hi,
> 
>    I have ported Gcc-4.6.2 to an embedded target. My C++ compiler is
> generating huge code size.
> 
>   #include <iostream>
>  using namespace std;
>  int main()
>  {
>    return 0;
>  }
> 
>    If we execute the above program then all the function in the
> iostream library are included in the elf as a result size of elf is
> increased....
> 
> 
> Please help me in solving this issue..

You're going to have to use custom I/O.  To start, link with
-Wl,-Map,mapfile to see what dependencies are being pulled in.

Andrew.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]