This is an old revision of the document!
KCC C Compiler Notes
KCC is a C language compiler for the PDP-10 written by Kok Chen and rewritten by Ken Harrenstien.
KCC can be used to compile C programs to run on under TOPS-20 on TWENEX.ORG. However, the compiler has several shortcomings you should be aware of before planning to use it on a programming or porting project:
. KCC supports only the “K&R” version of the C language, not the now almost universally supported ANSI C. However, including the header file KRCOMPAT.H
allows you to write C source that can be compiled by either a K&R or an ANSI C compiler.
Missing libraries. KCC does not include all of the standard C libraries. (List missing libraries)
Executable bloat. KCC was written with the goal of porting BSD programs to the PDP-10. Therefore, although KCC generates relocatable object files of size comparable to the TOPS-20 native MACRO assembler and FORTRAN compiler, the loader links in a large BSD compatibility layer object module and produces executable files much larger than those of other programming languages. (Are there compiler or loader options that can prevent linking of the BSD compatibility layer module?)
Absent Unix utilities. (?)
Therefore KCC is probably best used on projects porting software from a BSD environment and/or projects where the target executable file is expected to be relatively large.