home *** CD-ROM | disk | FTP | other *** search
- FUNCTION Compile/assemble/link C and assembler source, and object files.
-
- USAGE lc { -optstring [string] } { file.c | file.o | file.a }
-
- DESCRIPTION
-
- A UNIX style driver for Lattice C compiler, assembler and linker.
- The "(E dd)" or "(W dd)" in the error warnings from the compiler refer to
- numbered errors and warnings, respectively. See the Lattice C manual.
- Also note that the number of compiler error messages is limited to 20.
-
- The first named source file in the command line is used to name the
- resulting executable file. For example, "cc prog.o astr.a crfi.c"
- results in an executable called "prog" being produced.
-
- OPTIONS
-
- -d : Include extra information for debugging environment. This option
- works for all phases, so the "-c S" option for the assembler would
- be redundant.
- -C : Generate object files only; do not link.
- -F : Runs the linker with the "faster" option. There is
- memory checking, and deallocation may not be done correctly.
- Use with care.
- -L : "Lint" : check for errors; do not generate object or executable
- files.
- -P : Just print what is to be done; do not execute the commands.
-
- Compiler options:
-
- Works mostly like LC, as documented in Lattice C Compiler Manual,
- with following exceptions:
-
- -dDEF=VAL : must be one word - no spaces!
- -q : must be a volume or a directory (use trailing /, as "-q:t/")
- (defaults to ram:)
- -V : non-existent : see -P, above
-
- Assembler options:
-
- Use the form, "-ax string", where x is the option desired. See the
- AmigaDOS Developer's Manual for options and related strings. Also,
-
- -A : Even if there are no .c files in the command line, link the results
- together as if there were. (Helpful when all .c files were previously
- compiled into object files.)
-
- BUGS
- Don't try compiling two files with the same name with different tasks at
- the same time -- the program uses the same names for intermediate files
- every time it runs. In other words, don't run two compiles at once;
- this program wasn't written with multitasking in mind.
-
- In many of the cases, the syntax of the argument string is not checked.
- For example, the -L option does not insist on there being only one source
- file present; it just quietly ignores all but the first.
-
- Also, there is a limit of 32 files of each type in the command line.
-