Integer arithmetic

Greg Ewing (using news.cis.dfn.de) me at privacy.net
Thu Mar 27 18:40:24 EST 2003


Tetsuo wrote:
> Isn't he making a C interpreter? So it would need to make pointers, or
> it wouldn't be C.

That's true, but they wouldn't be real pointers
to real memory. They'd be simulated pointers to whatever
representation is used for the simulated memory.

For instance, if the memory is being represented by an
array.array of bytes, a pointer would just be an
integer representing an offset into this array.

-- 
Greg Ewing, Computer Science Dept,
University of Canterbury,	
Christchurch, New Zealand
http://www.cosc.canterbury.ac.nz/~greg





More information about the Python-list mailing list