Tool/software: TI C/C++ Compiler
Hi TI engineer,
We have a code like this:
typedef struct _BigStruct{
int data0;
int data1;
int data2;
...
int data63}BigStruct
void func(int a, int b, BigStruct bigStruct)
{ ......
my_value = bigStruct.data0 + bigStruct.data1
}
The software is built successfuly.But when we run the program, and set breakboint in the func() ,try to check the "bigStruct" int the "expression view", we find that the type of bigStruct is shown as "BigStruct *", not "BigStruct ". And if we input "bigStruct .data0",it shows an error. But at the time,"my_value" seems to be set correctly.
And we find that if BigStruct replaced by a little struct like typedef struct {data0,data1,data2}, it doesn't happen."littleStruct" will be showed just as "LittleStruct".
We want to know that:
1, Is the struct changed to struct point automatically?
2, when we use bigStruct,data0, is it "bigStruct->data0" in fact?
3, Can we use bigStruct as Formal parameter rightfully?