Board index » cppbuilder » 64 bit integer support?

64 bit integer support?


2004-07-31 01:04:19 AM
cppbuilder110
I have read that different versions of the Borland compiler support 64-bit integers with __int64, but I have not been able to get it to work on any of them in 4.0 4.5 5.0 or 5.5. In some versions there is a LONGLONG defined as a _double_ (not an int!)
Another posting I read suggested that 5.02 is the earliest version of the compiler to support this ... is it in 5.0 as well? Or do I have to find a 5.02 somewhere? If so, where could I find it?
The code we are compiling is _not_ for windows, it is for an embedded system, so I would prefer to stay away from 5.5 which seems to target windows only. Our current code is actually compiling under 4.0, so if we could get 64-bit integer support for that version it would be best. Otherwise, the lower the version number the better (assumption: fewer porting issues w/ least version # change).
Thanks In Advance
-Richard M. Hartman
XXXX@XXXXX.COM
186,000 mi/sec: not just a good idea, it's the LAW!
 
 

Re:64 bit integer support?

Responses interspersed below.
XXXX@XXXXX.COM (Wayne A. King) wrote:
Quote
On 30 Jul 2004 10:04:19 -0700, "Richard Hartman" < XXXX@XXXXX.COM >wrote:

>I have read that different versions of the Borland compiler support 64-bit integers
>with __int64,

Yes.

>I have not been able to get it to work on any of them in 4.0 4.5 5.0 or 5.5.

Not much to go on. Can you be more specific?
Note that 5.5 is the only version you list which has support for 64-bit ints.

>Another posting I read suggested that 5.02 is the earliest version of the compiler
>to support this ...

Correct. But only for 32-bit targets, not for 16-bit.
Ok, above you say only 5.5 supports 64-bit ints, then you say "Correct" to 5.02 also supporting them. Which is it?
Quote

>is it in 5.0 as well?

No.

>Or do I have to find a 5.02 somewhere?

Yes, but ... it won't help if you must create a 16-bit app.
Nope. I never mentioned a 16-bit target environment.
Quote

>If so, where could I find it?

Possibly on Ebay or other sites which sell used software.

>The code we are compiling is _not_ for windows, it is for an embedded system,

16-bit? Then no Borland (or Microsoft) compiler offers such support. It's only
in compilers which create 32-bit targets. You may want to look elsewhere for
large number support libraries (freeware/shareware/commercial.)
It's a 32-bit target processor, but it's _not_ a Window OS. 5.5 seems to compile/link for Windows only while earlier versions don't force the production of Windows target apps. Or am I missing something on 5.5?
Quote

>I would prefer to stay away from 5.5 which seems to target windows only.

Correct. (Win32) Note that 5.5 is from the Builder version 5 package.
64-bit int support was added to BC++ 5.02 for compatibility with Builder
version 1.
So 5.02 is the absolute earliest one I could get that supports 64-bit integers? Ok ... does it have the ability to compile/link non-Windows EXEs, or does it force the inclusion of the Windows headers & libraries?
Quote


--
Wayne A. King
( XXXX@XXXXX.COM , XXXX@XXXXX.COM )