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