APM C Compiler Frank Cringle The Bell Labs portable C compiler, with M68000 code generator added at MIT, is available on the APM. This compiler conforms to "The C Programming Language" by Kernighan & Ritchie, with the addition of enumerated type and in-line assembly. A large proportion of the UNIX(tm) run-time library exists, and porting of programs from UNIX to the APM and vice versa is possible for programs which do not rely on multiple processes. ! !
!file.a68 Flags: -l generate code to update the line number at address 0x1000 (displayed in run-time error messages). -L generate line number traps, so the program can be traced using the software front panel. -Xp generate profiling code (count procedure calls) There is no run-time support for profiling code (yet). Assembler instructions can be included in the source file using the asm(..) directive. Example: asm("trap #15"); asm(".word 1000"); /* line trap 1000 for sfp */ The instructions must correspond to MIT's idea of the M68000 op-codes - see C:A68.DOC !> ! ! ! ! !> ! ! ! !> ! ! ! ! ! ! !>