Hey - you're right! "Word" is (usually) 32 bits for GPC. Lesson : Read the latest doc's, don't rely on the old ones! <G>
Anyway, this issue shouldn't matter for the sample code presented, so we'll wait for some more input from Anuradha ...
Joe.
-----Original Message----- From: Frank Heckenbach [SMTP:frank@g-n-u.de] Sent: Monday, November 05, 2001 12:00 PM To: gpc@gnu.de Subject: Re: Re :Typecasting | record-field boundary
da Silva, Joe wrote:
Since the code "works with BP but not GPC", I presumed the hardware was X86 (IA32) ... I think Anuradha needs to clarify this, because as you say, misaligned access may not work with some other processors. BTW, the code also requires that a "word" is 16 bits - since the documentation implies that this is not true on all hardware,
In fact, for GPC this is true for *none* of the platforms -- `Integer' and `Word' are at least 32 bit (64 on some). Of course, you can redeclare `Word' (see the System unit), though this is not recommended.
this is another potential problem with the code.
I think I mentioned this in my last mail.
Frank
-- Frank Heckenbach, frank@g-n-u.de, http://fjf.gnu.de/ GPC To-Do list, latest features, fixed bugs: http://agnes.dida.physik.uni-essen.de/~gnu-pascal/todo.html