Page 1 of 1

signed/unsigned int 64 inside FC8

Posted: Thu May 07, 2020 2:44 pm
by Dirk Bubley
Hello FC Team,

ist it possible to create a variable int 64 signed and unsigned inside FC8?

BR

Dirk

Re: signed/unsigned int 64 inside FC8

Posted: Thu May 07, 2020 4:15 pm
by Benj
Hello,

Yes I beleive it's possible but only via the C code icon or the supplementary code window.

Signed 64-bit variable

Code: Select all

signed long long var;
Unsigned 64-bit variable

Code: Select all

unsigned long long var;
Hope this helps.

Re: signed/unsigned int 64 inside FC8

Posted: Thu May 07, 2020 5:35 pm
by kersing
You will need to take a close look at the data sheet for the compiler for your particular device to see if it is implemented. Last time I looked the 8 bit PIC devices didn't support 64 bit. However it seems some (all) now do if you use a fairly recent XC8 compiler. My (slightly older) FC8 install uses XC 1.45 which does not support 64 bit yet.

Compilers for other targets might differ...

Re: signed/unsigned int 64 inside FC8

Posted: Thu May 07, 2020 6:36 pm
by medelec35
kersing wrote:However it seems some (all) now do if you use a fairly recent XC8 compiler.
Just a reminder of this post if not already seen it?