The Unix Heritage Society mailing list
 help / color / mirror / Atom feed
* Re: [TUHS] changes in C compilers (Typesetter C)
@ 2018-08-24 20:23 Noel Chiappa
  0 siblings, 0 replies; 2+ messages in thread
From: Noel Chiappa @ 2018-08-24 20:23 UTC (permalink / raw)
  To: tuhs; +Cc: jnc

    > From: Jaap Akkerhuis

    > I've been told that when troff was rewritten from assembler to C

Was TROFF ever in assembler?

I'm pretty sure NROFF was, as of V6; the source is not in the V6 distro, and
the binary is stripped, but looking at the object code, it doesn't look like C
compiler output.

As of the PWB system that MIT had (or maybe it was TS - how can one tell the
difference, does anyone know?), NROFF and TROFF were generated from the same C
source (which I have, if anyone wants to look at it).


    > the compiler needed some rework and thus typesetter C was born.

I heard he needed features (e.g. longs and unsigned), but... looking at the
N/TROFF source, there are _no_ 'unsigned's, and only a handful of 'long'
variables! There also don't seem to be any bit fields, typedefs, etc.

There is _one_ initialized structure (array of structures, to be precise).
(Although there are a lot of places were an int is initialized with a
double-character constant!)

About the only features in "C Changes" that it uses are i) register types on
arguments, and the 'static' storage class.

So now I'm wondering about that meme...

	Noel

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [TUHS] changes in C compilers (Typesetter C)
  2018-08-24 12:00 ` Clem cole
@ 2018-08-24 13:50   ` Jaap Akkerhuis
  0 siblings, 0 replies; 2+ messages in thread
From: Jaap Akkerhuis @ 2018-08-24 13:50 UTC (permalink / raw)
  To: Clem cole; +Cc: tuhs

[-- Attachment #1: Type: text/plain, Size: 170 bytes --]


I'm not sure who did, but I've been told that when troff was rewritten from assembler to C, the compiler needed some rework and thus typesetter C was born.

	jaap


[-- Attachment #2: Message signed with OpenPGP --]
[-- Type: application/pgp-signature, Size: 267 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-08-24 20:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-24 20:23 [TUHS] changes in C compilers (Typesetter C) Noel Chiappa
  -- strict thread matches above, loose matches on Subject: below --
2018-08-24  7:02 [TUHS] changes in C compilers arnold
2018-08-24 12:00 ` Clem cole
2018-08-24 13:50   ` [TUHS] changes in C compilers (Typesetter C) Jaap Akkerhuis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).