Hello,
We are using CCS 5.1.0.07001 with Code Generation tools 7.3.0, DSP BIOS 5.41.10.36, and the COFF ABI.
Are there any workarounds available for "Zero Initialization" using COFF? (I.e. --zero_init=on, please find SPRU186S, section 7.4.35, quoted below.)
We have tools etc. that currently require COFF, so it would be very helpful to be able to do zero initialization without changing to EABI.
Many thanks,Fredrik
7.4.35 Zero Initialization (--zero_init Option)
In ANSI C, global and static variables that are not explicitly initialized must be set to 0 before program execution. The C/C++ EABI compiler supports preinitialization of uninitialized variables by default. This can be turned off by specifying the linker option --zero_init=off. COFF ABI does not support zero initialization.
The syntax for the --zero_init option is: --zero_init[={on|off}]
Fredrik Noring We have tools etc. that currently require COFF, so it would be very helpful to be able to do zero initialization without changing to EABI.
This is left to the user to do and is usually done in the linker command file by setting a fill value for the .bss section. Please see Section 6.13 of the C6000 Compiler Users Guide.
If a post answers your question please mark it with the "Verify Answer" button
Search the wikis for common questions: CGT, BIOS, CCSv3, CCSv4Track a known bug with SDOWP. Enter the bug id in the "Find Record ID" box
See http://e2e.ti.com/support/embedded/bios/f/355/p/201012/729978.aspx#729978 for a workaround.