Debug version???

Hi,

I was recently trying to slim down my code to decrease compile times and
(upgrading from 6.0 to 6.1 has tripled the compile time…doh!!!) found that
photon was creating a debug version (with the -g switch) every time I
compiled even though I had ‘release’ selected for the version. After
scanning
thru the make files I found this in the /gcc_ntox86/Makefile:

ifndef DEBUG
DEBUG = -g
endif

Now, does this mean if DEBUG is NOT defined that it turns on the switch???
I hand edited this file and turned it into:

ifndef DEBUG
DEBUG =
endif

My end executable is now 1.5 meg instead of almost 9 meg and things are
compiling much faster but still nowhere near where they should be.

Any comments???

I do not have any experience with Phab in QNX 6 - but in QNX 4 you
always were urged to
modify the makefile :slight_smile:, that for the line

ifndef DEBUG

etc.

Jörg

“Lee R. Copp” schrieb:

Hi,

I was recently trying to slim down my code to decrease compile times and
(upgrading from 6.0 to 6.1 has tripled the compile time…doh!!!) found that
photon was creating a debug version (with the -g switch) every time I
compiled even though I had ‘release’ selected for the version. After
scanning
thru the make files I found this in the /gcc_ntox86/Makefile:

ifndef DEBUG
DEBUG = -g
endif

Now, does this mean if DEBUG is NOT defined that it turns on the switch???
I hand edited this file and turned it into:

ifndef DEBUG
DEBUG =
endif

My end executable is now 1.5 meg instead of almost 9 meg and things are
compiling much faster but still nowhere near where they should be.

Any comments???

Dr. Jörg Kampmann - IBK-Consult for Real-Time and Embedded Systems
D-31228 Peine - Tel.:+49-177-276-3140 - Fax: +49-5171-13385
http://www.ibk-consult.de
===== QNX is the better Choice for Real-Time: http://www.qnx.com ====

Joerg Kampmann <joerg.kampmann@ibk-consult.de> wrote:

I do not have any experience with Phab in QNX 6 - but in QNX 4 you
always were urged to
modify the makefile > :slight_smile:> , that for the line

ifndef DEBUG

etc.

I think the way PhAB passes the “DEBUG” stuff to the Makefile has changed
between 6.0 and 6.1. If you remove (or rename) the Makefile and let PhAB
generate a new one, it will either just work or at least give you a better
start for manual adjustments.


Wojtek Lerch (wojtek@qnx.com) QNX Software Systems Ltd.