Liste des Groupes | Revenir à cl forth |
Stephen Pelc <stephen@vfxforth.com> writes:[...]
Yes, you can change the field size, but only as far as its value occupies the same number of a stack items and the stack is the same.However, higher level source code has been muchGforth has worked on 64-bit hosts since early 1996, and I found that
in demand. An example is Nick Nelson's value flavoured structures,
which are of particular merit when converting code from 32 bit to
64 bit host Forths.
Forth code tends to have fewer portability problems between 32-bit and
64-bit platforms than C code, and that's not just my code, the
applications in appbench and many others are also quite portable.
A major merit for value-flavoured structures is that you can change
the field size (e.g, from 1 byte to 2 bytes or vice versa) without
changing all the code accessing those fields. That's independent of
cell size.
Les messages affichés proviennent d'usenet.