Hello,
this is probably a trivial question... The following code:
-----------------------------
#include <stdio.h>
int main(void)
{
long long a[] = {0xffffffffffffffffLL};
unsigned long long b[] = {0xffffffffffffffffULL};
printf("a: %lld, b: %llu\n", a[0], b[0]);
}
-----------------------------
produces: "a: -1, b: 0" with CCS v5 (Linux) using the C64x+ Megamodule Cycle Accurate simulator as contained in "setup_CCS_5.0.0.00090.tar.gz" (same result in CCS v4.1.2). The same results are shown in the "Variables" watch window. Shouldn't the code rather yield "a: -1, b: 18446744073709551615" (see ULL variable range in SPRU187q, page 139)?
Thank you for your support.