octave-maintainers
[Top][All Lists]
Advanced

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

Re: Welcome C++11!


From: Jordi Gutiérrez Hermoso
Subject: Re: Welcome C++11!
Date: Thu, 13 Dec 2012 14:57:19 -0500

On 13 December 2012 14:55, Jordi Gutiérrez Hermoso <address@hidden> wrote:
> On 13 December 2012 14:52, Júlio Hoffimann <address@hidden> wrote:
>> C++11                                                 |       C++98
>> _______________________________________________________
>> not stripped |   19M liboctave.so.1.0.1    |      158M liboctave.so.1.0.1
>> stripped      |   15M liboctave.so.1.0.1     |       16M liboctave.so.1.0.1
>>
>> Then the difference is not that huge.
>
> So what was the compiler and the flags? If somehow using C++11 makes
> debug symbols tiny, that would be very interesting.

Actually, never mind, I can guess: you compiled with ./configure
CXXFLAGS='--std=c++11 -O2', i.e. you removed the -g flag when
compiling, so you didn't compile in debug symbols. The default
CXXFLAGS are '-O2 -g', and that would account for the extra debug
symbols increasing the library size.

It's got nothing to do with C++03 producing giant binaries compared to
C++11. Am I correct?

- Jordi G. H.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]