5 bcc \- Bruce's C compiler
8 .RB [ -03EGNOPSVcegvwxW ]
10 .RB [ -Bexecutable_prefix ]
27 is a simple C compiler that produces 8086 assembler, in addition compiler
28 compile time options allow 80386 or 6809 versions. The compiler understands
29 traditional K&R C with just the restriction that bit fields are mapped to
30 one of the other integer types.
32 The default operation is to produce an 8086 executable called
39 Pass the C source through
41 after preprocessing and before code generation. This will allow
43 ansi C to be compiled but it is definitly
45 a true ansi-C compiler.
48 8086 target (works on 80386 host, but not 6809)
51 80386 target (may work on 8086 host, but not 6809)
54 pass remainder of option to assembler (e.g. -A-l -Alistfile for a listing)
57 prefix for executable search path (as usual; the search order is all paths
60 in order, then the path given in the environment variable
62 if that is set, then the compiled-in defaults
63 (something like /usr/lib/bcc/ followed by /usr/bin/)
66 pass remainder of option to bcc-cc1, see code generation options.
72 produce preprocessor output to standard out.
75 produce GCC objects (Same as -Mg)
78 include search 'xyz' path
81 don't add default include to search list
84 add directory name 'xyz' to the head of the list of library directories searched
87 don't add default library to search list
90 alters the arguments for all passes to produce MSDOS executable COM files.
91 These are small model executables, use
100 arguments to the code generator for smaller faster code. Note this code is
101 not compatible with the standard calling conventions so a different version
102 of the C library is linked too.
107 argument to the code generator for smaller faster code. Note the standard
108 libc is normally transparent to this, but there are exceptions.
111 alters the arguments for all passes and selects C-library
112 to produce standalone Linux-86 executables
115 switches to i386-Linux code generator and library.
116 This configuration accepts the
118 flag to generate QMAGIC a.out files instead of the normal OMAGIC.
121 switches to i386-Linux code generator and generates OMAGIC object files
122 that can be linked with some versions of gcc; unfortunatly the most recent
123 versions use 'collect2' to link and this crashes.
126 makes the linker produce a native a.out file (Linux OMAGIC) if combined
127 with -3 the executable will run under Linux-i386.
132 to optimize 8086 code. Specifiers to choose which rules
134 should use can be appended to the
136 and the option can be repeated.
139 produce preprocessor output with no line numbers to standard output.
142 pass full option to c386 (Only for c386 version)
145 produce assembler file
148 temporary directory (overrides previous value and default; default is
149 from the environment variable TMPDIR if that is set, otherwise /tmp)
152 preprocessor undefine
155 print names of files being compiled
158 pass remainder of option to linker (e.g. -X-Ofile is passed to the linker
165 turn on floating point support, no effect with i386, changes libc library
169 produce debugging info (ignored.)
172 output file name follows (assembler, object or executable) (as usual)
175 produce profiling info (ignored.)
178 pass to the assembler to renumber the text segment for multi-segment programs.
181 print names and args of subprocesses being run. Two or more -v's print
182 names of files being unlinked. Three or more -v's print names of paths
186 Supress any warning diagnostics.
191 assembler warning messages.
194 don't include crt0.o in the link.
199 to the linker so that it will create an impure executable.
201 Other options are passed to the linker, in particular -lx, -M, -m, -s, -H.
203 .SH CODE GENERATOR OPTIONS
204 These are all options that the code generator pass
206 understands, only some will be useful for the
211 8086 target (works even on 80386 host, not on 6809)
214 80386 target (may work even on 8086 host, not on 6809)
220 produce preprocessor output (as usual)
223 include search path (as usual)
226 produce preprocessor output with no line numbers (as usual)
229 produce code with caller saving regs before function calls
232 print debugging information in assembly output
235 produce code with 1st argument passed in a register (AX, EAX or X)
238 produce code for 2 3 1 0 long byte order (only works in 16-bit code),
239 a special library of compiler helper functions is needed for this mode.
242 assembler output file name follows
245 produce (almost) position-independent code (only for the 6809)
248 print source code in assembly output
251 print what cc1 thinks is the location counter in assembly output
253 All the options except -D, -I and -o may be turned off by following the
254 option letter by a '-'. Options are processed left to right so the last
255 setting has precedence.
257 .SH PREPROCESSOR DEFINES
258 The preprocessor has a number of manifest constants.
261 The compiler identifier, normally used to avoid compiler limitations.
264 stringized name of current input file
270 compiler is configured for generating MSDOS executable COM files.
273 compiler is configured for generating standalone executables.
276 compiler is generating 16 bit 8086 assembler and the
278 keyword is available for including 8086 code.
281 compiler is generating 32 bit 80386 assembler and the
283 keyword is available for including 80386 code.
285 .B __CALLER_SAVES__ 1
286 compiler calling conventions are altered so the calling function must save the
290 registers if they are in use (ESI and EDI on the 80386)
292 .B __FIRST_ARG_IN_AX__ 1
293 compiler calling conventions are altered so the calling function is passing
294 the first argument to the function in the
301 .B __LONG_BIG_ENDIAN__ 1
302 alters the word order of code generated by the 8086 compiler.
304 These defines only occur in the 6809 version of the compiler.
307 compiler is generating 6809 code
309 .B __FIRST_ARG_IN_X__ 1
310 the first argument to functions is passed in the
314 .B __POS_INDEPENDENT__ 1
315 the code generated is (almost) position independent.
320 default directory to seach for compiler passes
323 directory to place temporary files (default /tmp)
326 All the include, library and compiler components are stored under the
328 directory under Linux-i386, this is laid out the same as a
330 filesystem and if bcc is to be the primary compiler on a system it should
331 be moved there. The configuration for this is in the
333 source file only, all other executables are independent of location.
335 The library installation also creates the file
336 .BR /usr/lib/liberror.txt ,
337 this path is hardcoded into the C library.
348 as86(1), ld86(1), elksemu(1)
350 The bcc.c compiler driver source is very untidy.
352 The linker, ld86, produces a broken a.out object file if given one input and
355 option this is so it is compatible with pre-dev86 versions.