4 ms·
I wonder how they tested these compilers.
by pfdietz 4y ago
I wonder how they tested these compilers.
- pjmlp 4y agoOn PL.8 case by creating an OS for RISC research at IBM, before they decided to reboot the effort as Aix, by joining the newly UNIX workstation market. https://dl.acm.org/doi/10.1145/800230.806977 https://dl.acm.org/doi/10.1145/800230.806977 https://news.ycombinator.com/item?id=32902737 https://news.ycombinator.com/item?id=32902737
- pfdietz 4y ago"Our basic procedure is to compile and execute a test bucket of 150 self checking programs every night. The test run produces code which is executed on all computers and at various levels of optimization. [...] In addition, the PL.8 effort has lead to a powerful compiler testing strategy. The PL.8 compiler is written in PL.8 and compiles itself. Periodically a "fixed point" is compiled. The current source is completely reeompiled using a compiler whose operation is believed to correspond to that source. The object and listing output of this compilation is saved and also used to build a new compiler. This new compiler is then used to compile the same source again. A bit for bit comparison of the object and listing files from both compiles is then made (ignoring dates, times, and other system noise)." That seems like a really small test suite for a compiler. I guess it was just much smaller than today's compilers.