Saved FAQ from Freescale.com for information only:
Question. Sometimes WinCE image, built in debug mode is very large to be placed to SDRAM. This creates difficulties for debugging.
Answer. The Platform Builder supports special environment variable COMPILE_DEBUG=1, which allows to compile a separate module with debug information while the image is built in release mode (without debug information). This provides ability to apply debugging technique of the Platform Builder with the separate module.
This option may be applied when compiling the module under command line :
CMD> SET WINCEREL = 1
CMD> SET COMPILE_DEBUG=1
CMD> BUILD c
i.MX Applications Processors > i.MX51 Processors > i.MX512, i.MX513, i.MX514, i.MX515, i.MX516