Does 32 bit variables work with gcc? I have feeling that 32 bit calculations have some problems?
Does 32 bit variables work with gcc?
I have feeling that 32 bit calculations have some problems?
The Board helps those that help themselves.
Of course they work but beware the integer promotion rules of C and the fact that the natural int size of AVR is just 16 bits so intermediate calculation results can often overspill the implied -32768..+32767 integer range of integer constants.
Try appending some "UL"s to any numeric constants involved in calculating a 32bit result and this will promote the whole calculation to 32bit.
Ampertronics Pty. Ltd.
* Electronic Design * Custom Products * Contract Assembly
Yes, whether you have enough ram in the T13 it's another story. Maybe you can add 2 32 bit numbers together.
You can put lipstick on a pig, but it is still a pig.
I've never met a pig I didn't like, as long as you have some salt and pepper.
© 2019 Microchip Technology Inc.