[openib-general] OpenSM: No support for debug build

Eitan Zahavi eitan at mellanox.co.il
Mon Aug 8 06:16:28 PDT 2005


Hi Hal,

More issues with the build environment:

OpenSM used to support two modes of compilation: debug and release (called
"free")
The main difference is in tradeoff performance vs debugability.
debug uses:
 -D_DEBUG_ = control some extra operations and data stored in complib useful
for debugging. 
	one example is CL_ASSERT which is disabled if _DEBUG_ not set
-g = include debug information in executables and libs
-O0 = prevent optimization

release mode uses:
	-O6 = max optimization for speed up

I propose to add -enable-debug to the configure.in and use it to control the
compilation flags.


Eitan Zahavi
Design Technology Director
Mellanox Technologies LTD
Tel:+972-4-9097208
Fax:+972-4-9593245
P.O. Box 586 Yokneam 20692 ISRAEL


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/general/attachments/20050808/b0fa69dc/attachment.html>


More information about the general mailing list