[FFmpeg-devel] [PATCH] Source level debug
Rich Felker
dalias
Mon Mar 3 08:20:28 CET 2008
On Mon, Mar 03, 2008 at 07:02:11AM +0000, M?ns Rullg?rd wrote:
> Uoti Urpala <uoti.urpala at pp1.inet.fi> writes:
>
> > On Mon, 2008-03-03 at 03:01 +0100, Diego Biurrun wrote:
> >> I think Mans is talking about always using -g3 in debug mode instead of
> >> having two different debug modes.
> >
> > Isn't compilation with debug enabled by default in FFmpeg? So the "debug
> > mode" is what you get if you don't remember to explicitly disable it.
> >
> > The -g switches do use a lot more space. Here are examples with
> > mplayer.c:
> >
> > -O3 : 109 kB
> > -g : 207 kB
> > -g3 : 539 kB
> >
> > So at least in this case using -g3 increases .o size to over five times
> > what it's without debugging symbols.
>
> The size with no debugging isn't interesting in this context.
> Building FFmpeg with default flags and everything enabled uses 134MB
> of disk space on my machine. Changing -g to -g3, the it needs 312MB.
> If this is considered too much, I don't mind making the extra debug
> information optional.
I consider this really significant.
> I would, however, prefer the level being an
> argument to --enable-debug rather than a whole new flag.
I agree. I'd also like it if --disable-debug were the default, but I
doubt others will be happy with that..
Rich
More information about the ffmpeg-devel
mailing list