I have as a last resort a hard reset in my release code that I don't want to run while connected to the ICE during debug.
ifndef(DEBUG) abort();#else /* DSP HARD RESET */
Is there a way to have the RELEASE/DEBUG compile option recognized?
Please let us know which DSP and Development Tool (CCES or VisualDSP++) are you using?
VisualDSP++ Revision 5.0 update 10.1
From the above it sounds like you are trying to use DEBUG and RELEASE macros to add conditional code sections.
There are pre-defined DEBUG and RELEASE macros which are specified to the Linker, so that it knows which directory to use for linking against objects. To achieve what you are trying to do, you would need to specify these macros to the Compiler Pre-Processor. This can be done simply by adding the "DEBUG" in Project Options:Project:Compile:Preprocessor under the Debug build, and "RELEASE" in the same section for the Release build.
For your information, switching between "Debug Mode" and "Release Mode" simply allows you to switch between different configurations for your project. The two modes allow you to individually set Compiler, Linker, Loader, etc, options differently based on your requirements. The defaults of Debug and Release differ in that Debug generates Debug information and does not perform optimization, while the Release version does not generate debug information but does enable optimization.
Retrieving data ...