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