2014-01-21 10:50 PM
Hi all,
I am using IAR v6.6, but I can not config project on release mode, when I select release mode, I still can dubug the code, but it must remove debug code on mode release.Maybe I wrong config, please help meThanks and best regardsThinh2014-01-22 01:17 AM
Hi
''when I select release mode, I still can dubug the code,'' That is normal. ''but it must remove debug code on mode release.'' Have you checked/measured the binary size? There should only be a small difference.2014-01-22 02:17 AM
Thanks you too much,
I know that at release mode, binary sizw will smaller. I just do not understand why on Release mode, we can debug. I used v6.4 before, when option release, it just support programming, we can not make a breakpoint, debug.....is it nomal?2014-01-22 02:30 AM
Hi
The difference between release and debug is that extra memory are inserted to allow debugging (ie watching variables). With the debug compiler directive removed, these debug memory variables are not inserted. The symbols and link to source code is done in the .elf file. If the release build generates this file - then you should still be able o debug. Lookup the .elf file in wikipedia. Try comparing the map file between the 2 builds. I think you will find that in release mode - watching variables will not work some of the time. ''I used v6.4 before, when option release, it just support programming, we can not make a breakpoint, debug.....'' Maybe they changed it - I do not know. Check in the project properties that the debug compiler/linker switch is removed for the release build.2014-01-22 02:39 AM
2014-01-22 02:56 AM
Hi
I advocate issuing what is tested the most. Since most testing is done with the debug mode - I suggest issuing the code in debug mode. If you change to release mode - you should really re-test it all again! The tiny difference in binary size makes no difference to the end user!2014-01-22 06:59 PM