[TUHS] C++ / Kernel

Bakul Shah bakul at bitblocks.com
Fri Aug 24 12:05:19 AEST 2018


In Henry Spencer's v7 sources there is a "struct void" in
cmd/sh/mode.h -- may have to do Bourne's fascination with
Algol68!

Bitfields were available but they were not used in v7 sources.
May be because v7 pcc generated slow code for bitfields access.
[Gosling's emacs used bitfields extensively. I managed to
compile it but it ran extremely slowly on a 5.6Mhz Fortune
box. That was the main reason I didn't switch to emacs. Then
Yost brought along the Rand editor and I used it until it
would no longer compile on *BSDs.]

> On Aug 23, 2018, at 5:30 PM, Clem Cole <clemc at ccc.com> wrote:
> 
> Yep.  Im pretty sure I remember void being in typesetter C also.   IIRC the differences between that version of Dennis’s compiler and what was included in 7th Edition was mostly in the libraries ie stdio was first released as part of the typesetter compiler but it was still a work in progress.   
> 
> On Thu, Aug 23, 2018 at 7:42 PM <ron at ronnatalie.com> wrote:
> Void probably showed up their first as well    It was more like modern C
> than the V6 compiler.
> 
> -----Original Message-----
> From: TUHS <tuhs-bounces at minnie.tuhs.org> On Behalf Of Noel Chiappa
> Sent: Thursday, August 23, 2018 7:30 PM
> To: tuhs at minnie.tuhs.org
> Cc: jnc at mercury.lcs.mit.edu
> Subject: Re: [TUHS] C++ / Kernel
> 
>     > From: Ron Natalie
> 
>     > The BSD kernel looks as if it requires such a later compiler (it uses
>     > bit fields which the earlier compilers didn't support).
> 
> Umm, minor nit: bit fields were added to/as of 'Typesetter C', which I
> gather was intermediate between V6 and V7.
> 
>         Noel
> 
> -- 
> Sent from a handheld expect more typos than usual




More information about the TUHS mailing list