I took ADC example and added the following lines:
uint64_t cap1,cap2;
cap1 = 2;
cap2 = (cap1 << 32) + 3;
Report("cap1 value is %llu \n\r",cap1);
Report("cap2 value is %llu \n\r",cap2);
The project is compiled without any error or warning in both CCS 6.1 and IAR workbench 7.5, the problem is that the binary compiled by IAR workbench produces incorrect results for both variables:
cap1 value is 8589934594
cap2 value is 17179869183
CCS 6.1 compiled binary gives correct values. Any idea.