K
Keith Thompson
pete said:stathis said:I do not understand what you mean by that restriction,
N869
4. Conformance
[#5] A strictly conforming program shall use only those
features of the language and library specified in this
International Standard.2) It shall not produce output
dependent on any unspecified, undefined, or implementation-
defined behavior, and shall not exceed any minimum
implementation limit.
5.2.4.1 Translation limits
[#1] The implementation shall be able to translate and
execute at least one program that contains at least one
instance of every one of the following limits:
-- 65535 bytes in an object (in a hosted environment only)
But an implementation that supports only 65535-byte objects could
still have make size_t and ptrdiff_t be 16 bits. size_t would be
enough to represent the size of any object, but pointer subtraction
could still overflow the range of ptrdiff_t. (Making ptrdiff_t 32
bits would avoid this problem, but it's not required.)