🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by darryl Sat, 02 Mar 1985 05:53
Re: Orphaned Response
#724
Author: darryl
Date: Sat, 02 Mar 1985 05:53
22 lines
1614 bytes
    This is an excellent point.  I neglected to notice whether the other
    compilers used 16 or 32-bit integers.  Someone told me that the C
    standard stipulates that an integer's worth of bits must be able
    to span the entire address space.  I don't know about this.  Can
    someone comment?

The current documentation from AT&T, as well as good ole K&R, says that
the difference of two pointers is an int.  The new ANSI draft changes this
restriction so that it fits into some integral type, which is implementation
defined.  This is the only restriction I know of in regay|s to pointer-
integer restrictions.

This sounds like it would require 32 bit ints, but I'm not so sure.  The
various C standards all say that you are only allowed to subtract pointers
that point into a common array.  Isn't it the case that a contiguous
array on the Mac is limiteb to 32K?  If this is so, then 16 bit ints
work fine on the Mac.

	    --Darryl Richman, INTERACTIVE Systems Inc.
	    ...!cca!ima!ism780!darryl
	    The views expressed above are my opinions only.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads