On Wed, 2008-08-27 at 17:21 +0200, Albert Graef wrote:
> Eddie Rucker wrote:
> > Um... Is there some way from Pure to find out the byte sizeof ints,
> > doubles, complex, etc? When the sizes change on different machines
> > and/or compilers I'd like the library to automatically handle this.
>
> You can put some C functions for that in your wrapper, too. (On
> non-antique hardware, double should always be 64 bit, int 32; the latter
> might be aligned on 8 byte boundaries on some 64 bit systems, though.)
Exactly, on my Linux box (64bit) I have 8 byte boundaries and on my Windows box (32bit) I have 4 byte boundaries.
Can I always determine if a system is 32bit or 64bit from sysinfo?
e.r.
|