Set constants

Peter Gerwinski peter@gerwinski.de
Thu Mar 11 20:27:00 GMT 1999


Hello,

when storing constants of type "set" in Pascal or Chill, the GNU
compiler uses a string of bytes.  In Pascal, however, we currently
handle sets as strings of ints.  This causes problems on big-endian
machines (for obvious reasons).

Changing the Pascal compiler to store sets in bytes rather than
ints would of course be possible, but I would expect a loss of
performance from this.  Is there any special reason why the GNU
compiler stores sets as bytes?  If not, I would suggest to
change get_set_constructor_bytes() in tree.c and related
functions to generate ints instead of bytes.

    Peter

-- 
Peter Gerwinski, Essen, Germany, http://home.pages.de/~Peter.Gerwinski/
Maintainer GNU Pascal - http://home.pages.de/~GNU-Pascal/ - gpc-19990118
  PGP key on request - 6C 94 45 BE 28 A4 96 - 0E CC E9 12 47 25 82 75
*** Vote against SPAM! ********* http://www.politik-digital.de/spam/ ***


More information about the Gcc mailing list