Quantcast
Channel: Tools
Viewing all articles
Browse latest Browse all 91752

Forum Post: RE: F28335, long long type with Code generation Tools 5.2.11

$
0
0

Hallo,

I put in the code, but compilation was not possible, because I use the RAM instead of Flash at the moment, maybe the puts function is to big. So I used only the if's to detect, whether the code is running at the place where variable is > then LONG_MAX, this works, variable counts higher then 32-Bit.

So I thought, the compiler optimized my code because of using "not long long" variables and constants. The proper type-casts helped, but with the "wrong code" I saw in the watch window the correct 64-Bit variable, but as described changed from 0000000080000000x to ffffffff00000000x when counting up!

This means, my variable long long llActCntCorr changed from 2147483647 to -2147483648 instead go on counting up.

br Ralf


Viewing all articles
Browse latest Browse all 91752

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>