Pascal not considered harmful - was Re: Rich kids are into COBOL
Rob Doyle
radioengr at gmail.com
Sat Feb 21 14:15:03 CST 2015
On 2/21/2015 10:07 AM, Fred Cisin wrote:
> Keep in mind, that K&R C is a C, not just "C like", without many of the
> restrictions of ANSI C.
>
> I actually agree with most of the ANSI CHANGES to C.
> BUT, K&R C IS C, not "C like", in spite of not being "ANSI C"
>
>
> On Sat, 21 Feb 2015, Sean Conner wrote:
>>>> 6-, 7-, and 8-bit character types as well as 18-bit and 36-bit
>>>> integers would be useful, but by definition it wouldn't actually be C.
>
> Some minor NITS:
>
>> The constraints are:
>> sizeof(short) <= sizeof(int)
>> sizeof(int) <= sizeof(long)
>> sizeof(short) < sizeof(long)
>
> IIRC, K&R permitted sizeof(short) <= sizeof(long)
>
> You COULD build a C with 32 bits for every type.
The compilers for some of the Texas Instruments DSP devices are like that.
TMS320C33 (and variants), for example.
In my application, raw speed was very important and there wasn't a lot
of 8-bit data.
Bob.
More information about the cctalk
mailing list