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

Uwe Bonnes bon at elektron.ikp.physik.tu-darmstadt.de
Wed Jun 20 11:09:47 CEST 2018


>>>>> "Philipp" == Philipp Burch <phip at hb9etc.ch> writes:

    Philipp> Hello everyone, I remember to have an option in the settings
    Philipp> dialog of qnutconf where I could switch the compiler,
    Philipp> e.g. cm3-gcc or cm3-gccdbg. This was practical, as the latter
    Philipp> had the flags configured to disable optimization and enable
    Philipp> debug info in the binary. A while ago, this setting disappeared
    Philipp> and now we have the compiler choice in the tree, but without
    Philipp> the option to produce debug code. How can I get this feature
    Philipp> back in a clean way? I'd rather not mess around with the
    Philipp> Makefiles, an option that can be set right before compiling the
    Philipp> libraries would be much easier.

Hello Phillip,

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.

Bye
-- 
Uwe Bonnes                bon at elektron.ikp.physik.tu-darmstadt.de

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 1623569 ------- Fax. 06151 1623305 ---------


More information about the En-Nut-Discussion mailing list