GNU Emacs, memory usage, releasing

Richard Tobin richard at aiai.ed.ac.uk
Sat Jan 6 04:00:31 AEST 1990


In article <1990Jan3.151427.12532 at ux1.cso.uiuc.edu> mcdonald at aries.scs.uiuc.edu (Doug McDonald) writes:
>  This seems to me to be disgusting. Why not just define these
>  "things" (the pointer with 8 bits of something else stuck in somewhere)
>  as 
>  
>  struct THING {
>  char * ptr;
>  char tag;
>  }

Because this will typically make each THING take up twice as much
space, which is often unacceptable. 

If portability is more of a concern than speed, one approach is to
use bitfields and treat the "address" as an array subscript.

-- Richard
-- 
Richard Tobin,                       JANET: R.Tobin at uk.ac.ed             
AI Applications Institute,           ARPA:  R.Tobin%uk.ac.ed at nsfnet-relay.ac.uk
Edinburgh University.                UUCP:  ...!ukc!ed.ac.uk!R.Tobin



More information about the Comp.lang.c mailing list