Part Number: TMS320F28377D
Tool/software: TI C/C++ Compiler
According to the C2000 wiki:
Q: The prototype for __byte is &__byte(int *array, unsigned int byte_index). Is the "&" a typo?
- A: It's not a typo, the __byte intrinsic returns a C++-style reference, even in C mode.
If the return value is indeed a C++ style reference, why does the following result in a compiler error?
int test[4];
int &x = __byte(test, 0);
"../main.cpp", line 139: error #436: a reference of type "int &" (not const-qualified) cannot be initialized with a value of type "int"