Download TMQ Vol I.i - tim
Transcript
Volume 1.1 THE MISOSYS QUARTERLY - SUMMER 1986 compiling, assembling, and linking separate files and modules using MC, MRAS, and MLIN1( (other than writing the code in the first place!). Volume 1.1 CC was compiled on my Model I and thus (alas) can't be used on a Model 4 as is. The documentation for CC contains an additional note about compiling cc on a Model 4. NAME CC - Compile MC Programs (requires MISOSYS' NRAS package) SYNOPSIS CC builds and executes an LDOS JCL file to compile, optionally optimize, assemble and link one or more source and object files into an executable program file. SYNTAX cc [-option] [-option] main.c [file.c...] [prog.o...] [...] This documentation is for Version 1.0, 26-Jul-86. By: Mike Bedore [75206,3164] -J The options are as follows: -c Compile and assemble only (no link). (default: compile, assemble and link). - -C Compile only (no assembly or link). (Default: see -c option) -d n -J Look for source files and write /CMD file to drive "n". (defaults to drive 1) -e Do NOT execute the JCL file. -j -J -k Delete temporary files as the work progresses. This may help those who are short on disk space (i.e. 2 drive system). (default: no delete) NOTE: /REL files are NOT deleted in any case. -m This option is only available when cc is compiled on a model 4 (with DOS6 defined). When running on a model 4, cc will normally use the single program MC/CMD rather than MCi followed by MC2. If for some reason you want to use the MC1/MC2 combo, specify -m -o name Write linker output to "name" instead of the default (defaults to same name as the first source file found). Do NOT include an extension or drivespec! The extension will be "/CMD"; the file will be written to the drive specified with the -d option. -O Optimize all source files prior to assembly. (default: no optimization.) -t n Write temporary (/TOK,/ASM,/REL) files to drive "n" (defaults to drive 1) -v n Use a virtual memory file for MLINK when linking the final output. The MLINK/VMF file will be on drive "fl". The Tower of Babel - 31 - The Tower of Babel