Other Parts Discussed in Thread: SYSBIOS
Tool/software: Code Composer Studio
Hello, we're currently in the process of migrating from CCS 6.1.1 to 9.0.1.
When building on CCS 6 (GNU 4.8.4) the following code:
printf("this is a number %llu <---", -1);
produces the following output:
this is a number 18446744073709551615 <---
However, when building on CCS 9 (GNU 7.2.1), the same code produces:
this is a number lu <---
Is this a regression of some sort, or are there some flags we're missing?
Thank you.
Edit:
I have also tried the following:
char a[] = "this is a number %llu <---"; char a2[] = "this is a number %s <---"; char b[64]; char b2[64]; uint64_t num = -1; sprintf(b, a, num); sprintf(b2, a2, std::to_string(num).c_str());
Both b and b2 are:
this is a number lu <---