[FFmpeg-devel] [PATCH] Source level debug
Tue Mar 4 16:07:34 CET 2008
Ivan Kalvachev wrote:
> On Mon, Mar 3, 2008 at 12:29 PM, Benjamin Larsson <banan at ludd.ltu.se> wrote:
>> Rich Felker wrote:
>> > [...]
>> >> 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
>> I prefer that FFmpeg is compiled default with -g. It makes it easy for
>> people to submit bug reports without recompiling FFmpeg. And I also
>> support the use of an argument to --enable-debug instead of the proposed
>> patch. And all compilers might not have -g levels. So I'll try to submit
>> a patch adding argument handling.
> Building with debug support also disables some of asm optimization
> that are know to run out of registers. Most noticeable are the CABAC
The default flags are -O3 -fomit-frame-pointer -g. This gives reasonable
debugging information with full optimisation.
> BTW It would be neat feature to have -O0 when -g3, no instruction
> reordering and stuff like this...
There's already a configure flag to disable optimisation.
mans at mansr.com
More information about the ffmpeg-devel