I am using f28035 controller and it is 32 bit processor.
What is the size of int, long etc?
int is 32 bit (4 bytes) or 16 bit (2 bytes) length?
I assume int is 32 bit, as like any other 32 bit controllers. Is that right?
thanks
Joy
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.
I am using f28035 controller and it is 32 bit processor.
What is the size of int, long etc?
int is 32 bit (4 bytes) or 16 bit (2 bytes) length?
I assume int is 32 bit, as like any other 32 bit controllers. Is that right?
thanks
Joy
The native type is 16 bit, so 'int' is 16 bit: -32678...+32767. Long int is 32 bit.
But the floating point types are more confusing:
float=double=32 bit single precision (supported in hardware c2000 uPs with FPU)
long double=64 bit double precision (software library)
Best regards
Edwin Krasser
I was looking for this kind of information when I found this topic, sorry to resurrect it. Which documents can I find information about types of variables? Sizes, memory allocation, etc.. In compiler manual?
I'm using CCSv5.2 and Concert F28M35H52C1.
thank you
Rafael,
For the TMS320C28x Code Compiler it gives the document spru514. And on page 87 you find the data types described.
Kind regards,
Matt