#: 20074 S3/Languages
26-Jun-94 13:13:47
Sb: #20073-Coco/OSK C compilers
Fm: David Breeding 72330,2051
To: Pete Lyall 76703,4230 (X)
> This isn't a bug, nor is it abnormal for compilers written for machines
> with larger wordsizes. The reason is that the CPU needs to make an address
> reference to a certain address boundary, usually on a multiple of the
> wordsize. Internal to the structure, they call this 'padding'.
I didn't think it was a bug as such. I've just upgraded to OSK and this was
something that I didn't expect. I was aware of the diff in int-size, etc, but
this took me a little while to figure out.
> If you need to write the structure to disk in a semi-portable fashion,
> you'll have to write out each element individually:
I think the portability thing would be too much to keep up with. From my
limited experimentation, it would take quite a bit of watching to keep it
straight. And if you ever changed the structure, you might throw it all off
again.
-- David Breeding --
CompuServe : 72330,2051
Delphi : DBREEDING
*** Sent via CoCo-InfoXpress V1.01 ***
^^^^ ^^^^^^^^^^
|