Scott Johnson wrote:
>Joe Jenkins wrote:
>> Is there any way I can use a integer type of 'unsigned long long' or
>> 'long long' (64 bits) on the palm computing device in C?
[...]
> (In GCC, I have no idea.)
I guess that's my cue...
In GCC, yes. I've never used 64-bit ints extensively or otherwise, but
a quick test (below) produces much the code you'd expect. Some 64-bit
ops are open coded (i.e., inlined), while others (multiplication) are
implemented via runtime functions in the normal libgcc -- so you don't
need to do anything special at link time. There are command line options
(-Wlong-long -pedantic) to warn if you use 64-bit int support, but support
is enabled by default. (This is all in the documentation, people!)
(In CodeWarrior, I have no idea.)
long long f (long long i, long long j) {
return 1 + i + i*j;
}
John "defender against FUD :-)"