Hi,
I'm looking for a list of definitions of each of the data types which are appended to the end of values for ARM DS-5 v5.20.1. I have looked and searched the ARM DS-5 v5.20.1 documentation to no avail.
For example in 0xFFFFFFFFU how does the compiler interpret 'U'? Does it just indicate that the value is unsigned, or does it also specify size such as a word? Other appended characters include f for float, d for double, etc.
Thanks in advance,
Ryan
These are part of the C standard, rather than being specific to the DS-5 toolchains. See this webpage for integer literals, and this webpage for floating point literals.
So for integers:
And for floats:
Note that the integer suffixes can be combined, so for example 1000UL would make the constant an unsigned long integer, 5000LL would make the constant a long long signed integer, and 2500ULL would be an unsigned long long integer.
I hope that helps,
Ash.
Thanks for your helpful answer. For those of us using C (not C++) see this webpage for integer literals.