Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!XEROX.COM!Leisner.Henr From: Leisner.Henr@XEROX.COM (Marty) Newsgroups: gnu.gcc.bug Subject: more BITS_PER_UNITS grief Message-ID: <890516-153511-15281@Xerox> Date: 16 May 89 22:34:51 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 31 I'm making headway on getting a TI34010 machine description up and running but I'm conintuing to have problems. I addeded a macro BITS_PER_CHAR at a number of strategic places where BITS_PER_UNIT was essentially wrong. I was hoping by setting BITS_PER_UNITS == 1, everything would work (I was wrong). It would seem reasonable to me that all pointer math should be done in units. The code for: char *cp; cp++ should bump cp by the appropriate number of units (not necessarily 1). Most pointer math is done via a function size_in_bytes(). I suppose a function size_in_units() would be a reasonable alternative. Any comments or better ideas? marty ARPA: leisner.henr@xerox.com GV: leisner.henr NS: martin leisner:wbst139:xerox UUCP: hplabs!arisia!leisner