A Star for UNIX v4 Author: atsampson Category: Christmas Challenge System: DEC PDP-11/45, running UNIX v4 Language: C Len source code: 172 Len exe file: 602 Instructions: Follow the instructions here to boot up UNIX v4 in simh: https://gunkies.org/wiki/UNIX_Fourth_Edition Log in as root. Then do: chdir /tmp cat >star.c (paste in c5.c, then press Ctrl-D) cc star.c a.out Not that different in principle from a modern UNIX, really! Description: When VCCC was announced this year, I realised that the recently-discovered UNIX v4 tape was due to be read a few days before the submission deadline, and thought it'd be nice to use it for an entry if reading the tape worked out. It did, so here you go. (If it hadn't worked out, this would have been an entry for some other early C system.) c5.kr.c is the original version I wrote using a modern C compiler in K&R C. It uses four-way symmetry, with one quarter of the pattern stored as a bit pattern in an array, which is drawn using a pair of recursive functions with a few IOCCC-style tricks to shorten the code a bit. UNIX v4 has an early C compiler which didn't like one of the ?: constructs I'd used, but also doesn't want the usual = when initialising an array, which saves another byte. Comments: Thank you to everybody who's worked on recovering UNIX v4 over the last couple of months: in particular to Robert Ricci who found the tape at Utah, Al Kossow at CHM who read and decoded the tape using Len Shustek's tools, and aap who managed to extract an RK05 disk image from it within a few hours.