summaryrefslogtreecommitdiff
path: root/devel/bcc/files/bcc-cc1.1
blob: 1e3daf5849762ebc762c9e06cee7e071cb3db212 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
.\" $NetBSD: bcc-cc1.1,v 1.4 2001/12/25 22:45:56 wiz Exp $
.\"
.\" This manual page has been assembled after Bruce's original bcc.doc
.\" file by Jörg Wunsch <joerg@FreeBSD.org>.
.\" It is redistributed under the same conditions as the whole bcc
.\" package itself.
.\"
.Dd March 26, 1995
.Os
.Dt BCC-CC1 1
.Sh NAME
.Nm bcc-cc1
.Nd C compiler backend
.Sh SYNOPSIS
.Nm bcc-cc1
.Op Fl 03EPcdfltw Ns Op -
.Op Fl D Ns Ar define
.Op Fl I Ns Ar include_dir
.Op Fl U Ns Ar undef
.Op Fl o Ar outfile
.Op Ar infile
.Sh DESCRIPTION
.Nm Bcc-cc1
is the backend for the
.Xr bcc 1
C compiler.
.Pp
It understands the following options:
.Bl -tag -width indent -compact
.It Fl 0
.Pq the digit 0
8086 target
.Pq works even on 80386 host
.It Fl 3
80386 target
.Pq works even on 8086 host
.It Fl D
define
.It Fl E
produce preprocessor output
.It Fl I
include search path
.It Fl P
produce preprocessor output with no line numbers
.It Fl c
produce code with caller saving regs before function calls
.It Fl d
print debugging information in assembly output
.It Fl f
produce code with 1st argument passed in a register
.It Fl l
produce code for 2 3 1 0 long byte order
.Pq only works in 16-bit versions
.It Fl o
assembler output file name follows
.It Fl p
produce
.Pq almost
position-independent code
.It Fl t
print source code in assembly output
.It Fl w
print what cc1 thinks is the location counter in assembly output
.El
.Pp
All the options except
.Fl D ,
.Fl I
and
.Fl o
may be turned off by following the
option letter by a
.Sq - .
Options are processed left to right so the last setting has precedence.
.Pp
The following is defined before option processing:
.Bd -literal
__BCC__			1
.Ed
.Pp
The following may be defined after option processing:
.Bd -literal
__AS09__		1 if 6809 version
__AS386_16__		1 if -0 option on 80*86
__AS386_32__		1 if -3 option on 80*86
__CALLER_SAVES__	1 if -c option
__FIRST_ARG_IN_AX__	1 if -f option on 80*86
__FIRST_ARG_IN_X__	1 if -f option on 6809
__LONG_BIG_ENDIAN__	1 if -l option
__POS_INDEPENDENT__	1 if -p option on 6809
.Ed
.Pp
The following are standard builtins:
.Bd -literal
__FILE__		stringized name of current input file
__LINE__		current line number
.Ed
.Sh FILES
.Pa /usr/local/lib/bcc/bcc-cc1
.Sh SEE ALSO
.Xr bcc 1
.Sh AUTHORS
This program has been written by Bruce Evans.