User Tools

Site Tools


tutorials:kcc

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

tutorials:kcc [2014/01/28 07:05]
papa created
tutorials:kcc [2014/06/09 06:48] (current)
vulcan
Line 7: Line 7:
   - **K&R C**. KCC supports only the "K&R" version of the C language, not the now almost universally supported ANSI C. However, including the header file [[http://twenex.org/~papa/KRCOMPAT.H|KRCOMPAT.H]] allows you to write C source that can be compiled by either a K&R or an ANSI C compiler.   - **K&R C**. KCC supports only the "K&R" version of the C language, not the now almost universally supported ANSI C. However, including the header file [[http://twenex.org/~papa/KRCOMPAT.H|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)//   - **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?)//  +  - **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?)// One approach to save file space is to delete the (bloated) .EXE file after compilation and linking. The .REL object file can be run using the EXECUTE command which will link, load and run the program. (for example @EXECUTE MYPROG.REL  or @EX MYPROG ). This of course involves linking at every execution (but then TWENEX.ORG is much faster than any real PDP-10). 
-  - **Absent Unix utilities**. //(?)//+  - **Absent Unix utilities**. These exist on the very last Panda distribution of TOPS-20, but they are very large in size (bloated).
  
 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. 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.
  
tutorials/kcc.1390892740.txt.gz · Last modified: 2014/01/28 07:05 by papa