This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Compiler/TMS320F28069: Struct zero initialization

Part Number: TMS320F28069


Tool/software: TI C/C++ Compiler

I have a few places in my code where I intended to zero initialize a struct but I have discovered that it doesn't seem to be working.

struct { int32_t a,b,c,d,e,f,g,h,i,j; } a = {};

I would expect to zero out the struct. Code is generated, but it seems to copy from a place in unitialized .ebss memory that contains random values. I think it is standard to be able to use this syntax. Am I missing anything?

http://stackoverflow.com/questions/1069621/are-members-of-a-c-struct-initialized-to-0-by-default

compiler 15.12.3