TIP: Click on subject to list as thread! ANSI
echo: cis.languages
to: Pete Lyall 76703,4230 (X)
from: David Breeding 72330,2051
date: 1994-06-26 13:13:47
subject: #20073-Coco/OSK C compilers

#: 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 ***
                       ^^^^ ^^^^^^^^^^

SOURCE: compuserve via textfiles.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.