Subject: Re: [OT] Any sources for PDP-11 spares?
To: der Mouse <mouse@Rodents.Montreal.QC.CA>
From: Anders Magnusson <email@example.com>
Date: 06/11/2002 21:27:14
> Hmm? I think it's an excellent way to smoke out those hidden
> assumptions about word size.
Those assumptions are not especially well hidden, things like:
b = c << 24 | c << 16 | c << 8 | c;
are not uncommon in any program. This example may be handled either by
using int_least32_t and (depending on situation) shift left by CHAR_BIT.
Another solution would be to have a compiler-specific type that is 32 bit
and use that to get an int32_t type.