Difference between revisions of "Talk:Debug generated C code"

(Please, not just MS-Windows)
 
 
Line 3: Line 3:
 
It would be nice to have the instructions for Linux, and Mac OSX.
 
It would be nice to have the instructions for Linux, and Mac OSX.
 
--[[User:Colin-adams|Colin-adams]] 15:41, 8 June 2009 (UTC)
 
--[[User:Colin-adams|Colin-adams]] 15:41, 8 June 2009 (UTC)
 +
 +
When debug C code in a library Clib (*.lib) with Visual Studio, $ISE_EIFFEL\studio\config\$ISE_PLATFORM\msc\config.sh should be changed also.
 +
 +
Change from
 +
<code>
 +
optimize='-O2 -GS-'
 +
debug=''
 +
</code>
 +
to
 +
<code>
 +
#optimize='-Od -GS'
 +
#debug='-Zi -DISE_USE_ASSERT'
 +
</code>
 +
Otherwise when `finish_freezing -library', the debug information would not added to the library C lib file.
 +
 +
[[User:Larryl|Larryl]] 09:30, 26 November 2009 (UTC)

Latest revision as of 01:30, 26 November 2009

This is for MS-Windows only.

It would be nice to have the instructions for Linux, and Mac OSX. --Colin-adams 15:41, 8 June 2009 (UTC)

When debug C code in a library Clib (*.lib) with Visual Studio, $ISE_EIFFEL\studio\config\$ISE_PLATFORM\msc\config.sh should be changed also.

Change from

optimize='-O2 -GS-'
debug=''

to

#optimize='-Od -GS'
#debug='-Zi -DISE_USE_ASSERT'

Otherwise when `finish_freezing -library', the debug information would not added to the library C lib file.

Larryl 09:30, 26 November 2009 (UTC)