[En-Nut-Discussion] CM3 code: Enabling debug info

Philipp Burch phip at hb9etc.ch
Wed Jun 20 12:03:40 CEST 2018


Hi Uwe!

On 20.06.2018 11:09, Uwe Bonnes wrote:
> 
> at the moment I add "CFLAGS_OPT = -g3 -Og" to UserConf.mk in the application
> directory and also on the library directory when library debug is needed.
> 
> Otherwise you can add cm3-gccdbg entries on conf/tools.nut. All those
> Makedefs.cm3-gccdbg still compile with -O0, while recent compilers allow -Og
> resulting in much smaller, but still debuggable code.
> 

Perfect! Thanks also for the hint with -Og, that's very good to know.

Bye,
Philipp


More information about the En-Nut-Discussion mailing list