[FFmpeg-devel] [PATCH] Source level debug

Måns Rullgård mans
Mon Mar 3 08:02:11 CET 2008

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 would, however, prefer the level being an
argument to --enable-debug rather than a whole new flag.

M?ns Rullg?rd
mans at mansr.com

More information about the ffmpeg-devel mailing list