On 16/07/2016 14:29, Laszlo Ersek wrote: > > However, I recall from the thread that -Os enables -fomit-frame-pointer, > which might make source level debugging impossible (according to the GCC > manual).
This is only with very old debuggers. Current debuggers use DWARF annotations which support generation of backtraces even in the lack of a frame pointer. That said, the best debugging experience on recent GCC (4.8 I think) is with -Og if you want to use it for DEBUG builds. -O1 and -Os are probably the best for firmware though, where code size is important. Paolo > Now, we're not big on source level debugging in GCC builds, at least > right now, plus I also cannot claim that that -fomit-frame-pointer is > never enabled *otherwise*. Much as I know -fomit-frame-pointer could be > enabled with -O1, -O2, even with -O0?... > > I'd just like to avoid a setting that *guarantees* that source level > debugging would be impossible or garbled. Ard, can you comment on that? _______________________________________________ edk2-devel mailing list [email protected] https://lists.01.org/mailman/listinfo/edk2-devel

