summaryrefslogtreecommitdiff
path: root/devel/bcc/files
diff options
context:
space:
mode:
authortsarna <tsarna@pkgsrc.org>1998-07-17 04:39:19 +0000
committertsarna <tsarna@pkgsrc.org>1998-07-17 04:39:19 +0000
commitea68d45471aa5b7de4cdf1b847cf4e2452b1e946 (patch)
tree5c03e67e94b1d6a260bc0db6fcc5cdba481eb0f5 /devel/bcc/files
parent02b8d9c8d61e02cede71e2a721b8a9462d00b674 (diff)
downloadpkgsrc-ea68d45471aa5b7de4cdf1b847cf4e2452b1e946.tar.gz
Add pkg for bcc, a 16-bit x86 compiler
Diffstat (limited to 'devel/bcc/files')
-rw-r--r--devel/bcc/files/Makefile.bcc20
-rw-r--r--devel/bcc/files/as86.1158
-rw-r--r--devel/bcc/files/bcc-cc1.1128
-rw-r--r--devel/bcc/files/bcc.1233
-rw-r--r--devel/bcc/files/ld86.1138
-rw-r--r--devel/bcc/files/md51
6 files changed, 678 insertions, 0 deletions
diff --git a/devel/bcc/files/Makefile.bcc b/devel/bcc/files/Makefile.bcc
new file mode 100644
index 00000000000..f49176f7c44
--- /dev/null
+++ b/devel/bcc/files/Makefile.bcc
@@ -0,0 +1,20 @@
+.include "../Makefile.inc"
+
+.PATH: ../bcc-cc1
+
+CFLAGS = -DNSIG=32
+CFLAGS += -Wall
+CFLAGS += -DLOCALPREFIX=\"${LOCALPREFIX}\"
+LDFLAGS =
+
+
+SRCS = bcc.c
+
+PROG = bcc
+
+BINDIR = ${LOCALPREFIX}/bin
+MANDIR = ${LOCALPREFIX}/man
+
+WARNS = 0
+
+.include <bsd.prog.mk>
diff --git a/devel/bcc/files/as86.1 b/devel/bcc/files/as86.1
new file mode 100644
index 00000000000..e4441d3fa89
--- /dev/null
+++ b/devel/bcc/files/as86.1
@@ -0,0 +1,158 @@
+.\"
+.\" 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 AS86 1
+.Sh NAME
+.Nm as86
+.Nd assembler for 8086/80386
+.Sh SYNOPSIS
+.Nm as86
+.Op Fl 03agjuw
+.Op Fl b Op Ar bin
+.Op Fl lm Op Ar list
+.Op Fl n Ar name
+.Op Fl o Ar obj
+.Op Fl s Ar sym
+.Ar src
+.Sh DESCRIPTION
+
+.Ss Overview
+.Nm As86
+is an assembler for 8086 or 80386 CPUs. Its syntax resembles rather
+the usual 8086 assembler syntax than the AT&T-like syntax as used by
+the system's assembler
+.Xr as 1 .
+
+It can also be compiled to support the Motorola 6809 CPU. The name
+.Nm as86
+has only been chosen to make it distinct from the system's assembler.
+
+.Ss Options
+
+.Bl -tag -width indent -compact
+
+.It Fl 0
+.Pq the digit 0
+start with 16-bit code segment
+
+.It Fl 3
+start with 32-bit code segment
+
+.It Fl a
+enable partial compatibility with asld
+
+.It Fl b
+produce binary file, filename may follow
+.Pq obsolete
+
+.It Fl g
+only put global symbols in object file
+
+.It Fl j
+force all jumps to be long
+
+.It Fl l
+produce list file, filename may follow
+
+.It Fl m
+print macro expansions in listing
+
+.It Fl n
+name of module follows
+.Pq goes in object instead of source name
+
+.It Fl o
+produce object file, filename follows
+
+.It Fl s
+produce symbol file, filename follows
+.Pq obsolete
+
+.It Fl u
+take undefined symbols as imported-with-unspecified segment
+
+.It Fl w
+don't print warnings
+
+.El
+
+The 6809 version does not support
+.Fl 0 ,
+.Fl 3 ,
+.Fl a
+or
+.Fl j .
+
+
+.Ss Defaults
+Off or none except for these; no output is produced without a flag:
+
+.Bl -tag -width indenct -compact
+
+.It Fl 0 | Fl 3
+native, i.\& e. 80386
+
+.It Ar list
+stdout
+.Pq beware of clobbering next arg
+
+.It Ar name
+basename of the source name
+
+.El
+
+.Ss Input syntax
+
+The following lists all acceptable names except the CPU instructions:
+
+.Bl -tag -width "XXXXXXX" -compact -offset indent
+
+.It Register names
+
+bp, bx, di, si, eax, ebp, ecx, edi, edx, esi, esp,
+ax, cx, dx, sp, ah, al, bh, bl, ch, cl, dh, dl,
+cs, ds, es, fs, gs, ss, cr0, cr2, cr3, dr0, dr1,
+dr3, dr6, dr7, tr3, tr4, tr5, tr6, tr7, st.
+
+.It Type sizes
+
+byte, dword, fword, far, ptr, pword, qword, tbyte, word.
+
+.It Pseudo-operations
+
+else, elseif, elseifc, endif, if, ifc;
+\&.align, .ascii, .blkb, .blkw, block, .bss, .byte, comm, .comm,
+\&.data, .data1, .data2, .data4, db, dd, .define, dw, end, endb,
+enter, entry, equ, .even, export, extern, .extern, extrn, fail, .fail,
+fcb, fcc, fdb, get, .globl, ident, import, include, lcomm, .lcomm,
+\&.list, loc, .long, .maclist, macro, .map, org, .org, public,
+rmb, .rom, .sect, set, setdp, .short, .space, .text, use16,
+use32, .warn, .word, .zero.
+
+.El
+.Sh SEE ALSO
+
+.Xr as 1 ;
+.Xr ld86 1 ,
+.Xr bcc 1 .
+
+.Sh AUTHORS
+
+This program has been developed by Bruce Evans.
+
+.Sh BUGS
+
+The
+.Fl u
+and
+.Fl w
+options are perhaps back to front because they are needed for cc1
+output and Minix's make does the wrong thing with .s files left
+around. However, all assembler code not written by compilers should
+assemble with them turned off.
+
diff --git a/devel/bcc/files/bcc-cc1.1 b/devel/bcc/files/bcc-cc1.1
new file mode 100644
index 00000000000..ff9ffa5c0c9
--- /dev/null
+++ b/devel/bcc/files/bcc-cc1.1
@@ -0,0 +1,128 @@
+.\"
+.\" 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.
+
+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
+
+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.
+
+The following is defined before option processing:
+
+.Bd -literal
+__BCC__ 1
+.Ed
+
+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
+
+The following are standard builtins:
+
+.Bd
+__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.
diff --git a/devel/bcc/files/bcc.1 b/devel/bcc/files/bcc.1
new file mode 100644
index 00000000000..c1ee9a9ac6f
--- /dev/null
+++ b/devel/bcc/files/bcc.1
@@ -0,0 +1,233 @@
+.\"
+.\" 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 1
+.Sh NAME
+.Nm bcc
+.Nd Bruce's C compiler
+.Sh SYNOPSIS
+.Nm bcc
+.Op Fl 03EGOPSVcegv
+.Op Fl A Ns Ar as_option
+.Op Fl B Ns Ar executable_prefix
+.Op Fl C Ns Ar cc1_option
+.Op Fl D Ns Ar define
+.Op Fl I Ns Ar include_dir
+.Op Fl L Ns Ar ld_option
+.Op Fl Q Ns Ar c386_option
+.Op Fl T Ns Ar tmpdir
+.Op Fl U Ns Ar undef
+.Op Fl o Ar outfile
+.Op Fl fpt Ar error
+.Op ld_options
+.Op Ar infiles
+
+.Sh DESCRIPTION
+
+.Ss Overview
+
+.Nm Bcc
+is a simple C compiler suitable for generating 8086 or 80386 code.
+It basically understands the old K&R C input syntax, with some
+restrictions on bit fields. It interacts with the programs
+.Xr as86 1
+and
+.Xr ld86 1 .
+
+As a compile-time option, it is also possible to convince
+.Nm bcc
+to generate code for the Motorola 6809 CPU.
+
+.Ss 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 A
+pass remainder of option to assembler; e.\& g.
+.Ql -A-l -Alistfile
+for a listing
+
+.It Fl B
+prefix for executable search path; the search order is all paths
+specified using
+.Fl B ,
+in order, then the path given in the environment variable
+.Ev BCC_EXEC_PREFIX
+if that is set, then the compiled-in defaults
+.Pa /usr/local/lib/bcc ,
+followed by
+.Pa /usr/local/bin
+
+.It Fl C
+pass remainder of option to bcc-cc1; e.\& g.
+.Ql -C-c
+for caller-saves
+
+.It Fl D
+define
+
+.It Fl E
+produce preprocessor output
+
+.It Fl G
+produce gnu-Minix objects
+.Pq link with gnu ld
+
+.It Fl I
+include search path
+
+.It Fl L
+pass remainder of option to linker
+
+.It Fl O
+optimize
+.Pq does nothing
+
+.It Fl P
+produce preprocessor output with no line numbers
+
+.It Fl Q
+pass full option to c386
+
+.It Fl S
+produce assembler file
+
+.It Fl T
+temporary directory;
+overrides previous value and default; default is
+from the environment variable
+.Ev TMPDIR
+if that is set, otherwise
+.Pa /tmp
+
+.It Fl U
+undefine
+
+.It Fl V
+print names of files being compiled
+
+.It Fl c
+produce object file
+
+.It Fl e
+run the preprocess pass separately. This takes less memory, and may
+help or harm by giving more traditional semantics like token pasting
+with
+.Ql /**/
+\&.
+
+.It Fl f
+error
+.Pq float emulation not supported
+
+.It Fl g
+produce debugging info
+.Pq does nothing
+
+.It Fl o
+output file name follows
+.Pq assembler, object or executable
+
+.It Fl p
+error
+.Pq profiling not supported
+
+.It Fl t
+error
+.Pq substitution of some cc passes not supported
+
+.It Fl v
+print names and args of subprocesses being run.
+.Pp
+Two or more
+.Fl v
+\&'s: print names of files being unlinked.
+.Pp
+Three or more
+.Fl v
+\&'s: print names of paths being searched.
+
+.El
+
+The 6809 version does not support
+.Fl 0 ,
+.Fl 3
+or
+.Fl G.
+
+Only the c386 version supports
+.Fl Q .
+
+.Ss Defaults
+Off or none except for these:
+
+.Bl -tag -width indent -compact
+
+.It Fl 0 | Fl 3
+native, i.\& e. 80386
+
+.It Ar outfile
+stdout for preprocessor output
+.Pp
+.Pa somewhere/file.[ci]
+\&->
+.Pa file.s
+for compiler output
+.Pp
+.Pa somewhere/file.[cis]
+\&->
+.Pa file.o
+for assembler output
+.Pp
+.Pa a.out
+for ld output
+
+.El
+
+Other options are passed to the linker, in particular
+.Fl i- ,
+.Fl l Ns Ar x ,
+.Fl M ,
+.Fl m ,
+.Fl s .
+The
+.Fl i
+option is always passed to the linker but can be cancelled using
+.Fl i- .
+
+.Sh ENVIRONMENT
+
+.Bl -tag -width indent -compact
+
+.It Ev BCC_EXEC_PREFIX
+directory to search for compiler passes
+
+.It Ev TMPDIR
+where to place temporary files
+
+.El
+
+.Sh SEE ALSO
+
+.Xr as86 1 ,
+.Xr ld86 1 ,
+.Xr bcc-cc1 1 ;
+.Xr cc 1 .
+
+.Sh AUTHORS
+
+This program has been written by Bruce Evans.
diff --git a/devel/bcc/files/ld86.1 b/devel/bcc/files/ld86.1
new file mode 100644
index 00000000000..914be158c8e
--- /dev/null
+++ b/devel/bcc/files/ld86.1
@@ -0,0 +1,138 @@
+.\"
+.\" 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 LD86 1
+.Sh NAME
+.Nm ld86
+.Nd loader for as86
+.Sh SYNOPSIS
+.Nm ld86
+.Op Fl 03Mimrstz Ns Op -
+.Op Fl l Ns Ar lib_extension
+.Op Fl o outfile
+.Op Fl C crtfile
+.Op Fl L Ns libdir
+.Op Fl O Ns libfile
+.Op Fl T textaddr
+.Ar infile
+.Op Ar ...
+.Sh DESCRIPTION
+
+.Ss Overview
+
+.Nm Ld86
+is the loader that understands how to link the output of
+.Xr as86 1
+together.
+
+.Ss Options
+
+.Bl -tag -width indent -compact
+
+.It Fl 0
+.Pq the digit 0
+produce header with 16-bit magic and use library subdir
+.Pa i86
+for
+.Fl l Ns Ar x
+
+.It Fl 3
+produce header with 32-bit magic and use library subdir
+.Pa i386
+for
+.Fl l Ns Ar x
+
+.It Fl C Ns Ar x
+add file
+.Pa libdir-from-search/crt Ns Ar x Ns \&.o
+to list of files linked
+
+.It Fl L Ns Ar x
+add dir name
+.Ar x
+to the head of the list of library dirs searched
+
+.It Fl M
+print symbols linked on stdout
+
+.It Fl O Ns Ar x
+add library
+.Pa libdir-from-search/ Ns Ar x
+to list of files linked
+
+.It Fl T
+text base address follows
+.Pq in format suitable for strtoul
+
+.It Fl i
+separate I&D output
+
+.It Fl l Ns Ar x
+add library
+.Pa libdir-from-search/lib Ns Ar x Ns \&.a
+to list of files linked
+
+.It Fl m
+print modules linked on stdout
+
+.It Fl o
+output file name follows
+
+.It Fl r
+produce output suitable for further relocation
+
+.It Fl s
+strip symbols
+
+.It Fl t
+trace modules being looked at on stdout
+
+.It Fl z
+produce
+.Dq unmapped zero page
+executables
+
+
+.El
+
+The 6809 version does not support -i or -r.
+
+All the options not taking an argument may be turned off by following the
+option letter by a
+.Sq \&- ,
+as for bcc-cc1.
+
+.Ss Defaults
+
+Off or none except for these:
+
+.Bl -tag -width indent -compact
+
+.It Fl 0 | Fl 3
+native, i.\& e. 80386
+
+.It Fl L Ns Pa /usr/local/lib/bcc/ Ns Ar m/
+.Po
+.Ar m
+is machine dependent
+.Pc
+
+.It Ar outfile
+.Pa a.out
+
+.El
+
+.Sh SEE ALSO
+
+.Xr as86 1 ,
+.Xr bcc 1 .
+
+.Sh AUTHORS
+
+This programm has been written by Bruce Evans.
+
diff --git a/devel/bcc/files/md5 b/devel/bcc/files/md5
new file mode 100644
index 00000000000..14cf819e0fe
--- /dev/null
+++ b/devel/bcc/files/md5
@@ -0,0 +1 @@
+MD5 (bcc.tar.gz) = b372eb6c6c709f1fba62098def3d4096