Hi,
I am using CCSv6.0.1 with TI's official MSP GCC as toolchain on Ubuntu machine. I used optimization setting -Os (size optimized) for the firmware.
When I use rand() function at this optimization setting, the system crashes. The firmware works fine for optimzation setting less than of equal to -O1.
Also the functions mktime() and strtol() are not behaving as expected even at -O0 optimzation setting. Is there any switch that I need to enable for gcc?
I spent many days trying to figure out the issue but with no success.
I will be glad if anyone can help fix the issue.
Regards,
Ravi Teja