🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #2647

more BITS_PER_UNITS grief

#2647
From: Marty
Date: Tue, 16 May 1989 22:34
31 lines
1166 bytes
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
 
Technical Details
Message-ID: <890516-153511-15281@Xerox>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!XEROX.COM!Leisner.Henr

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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