Part Number: TMS320C6678
Hi Team,
Need your expertise on our customer's query below. Posting on their behalf:
The doc SPRU187U says that .cinit contains tables for explicitly initialized global and static variables when choose -rom_mode. But my code defines a variable as uninitialized variable, and the .cinit of map have some information about it, may we know the reason behind this?
#include"stdio.h"
int itemp;
void main()
{
itemp = 1;
printf("%d\n",itemp);
}
[07:53] qifeng liu: .cinit 0 0c006ef0 000000a8
0c006ef0 00000072 (.cinit..fardata.load) [load image, compression = rle]
0c006f62 00000002 --HOLE-- [fill = 0]
0c006f64 0000000c (__TI_handler_table)
0c006f70 00000008 (.cinit..bss.load) [load image, compression = zero_init]
0c006f78 00000008 (.cinit..far.load) [load image, compression = zero_init]
0c006f80 00000018 (__TI_cinit_table)
.bss 0 0c006b5c 00000004 UNINITIALIZED
0c006b5c 00000004 main.obj (.bss)
Thanks in advance!
Kind Regards,
Jejomar