*BSD News Article 92384


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!goanna.cs.rmit.edu.au!news.apana.org.au!cantor.edge.net.au!news.teragen.com.au!news.access.net.au!news.mel.connect.com.au!news.mel.aone.net.au!news.netspace.net.au!news.mira.net.au!vic.news.telstra.net!news.telstra.net!news-out.internetmci.com!newsfeed.internetmci.com!news.webspan.net!ix.netcom.com!howland.erols.net!vixen.cso.uiuc.edu!uchinews!ncar!csn!nntp-xfer-1.csn.net!news-2.csn.net!teal.csn.net!not-for-mail
From: bediger@csn.net (Bruce Ediger)
Newsgroups: alt.sources,comp.unix.bsd.netbsd.misc
Subject: SPARC assembler for NetBSD/sparc 1.1 0/10
Followup-To: alt.sources.d
Date: 25 Mar 1997 00:57:38 -0700
Organization: H1DE()U5 MUT4NT5!!1!!!
Lines: 107
Distribution: world
Message-ID: <5h80hi$jd3@teal.csn.net>
NNTP-Posting-Host: 199.117.27.22
Xref: euryale.cc.adfa.oz.au alt.sources:10046 comp.unix.bsd.netbsd.misc:5719

Archive-name: sparc_asm
Submitted-by: bediger@csn.net

This is a SPARC V8 assembler for NetBSD/sparc 1.1.  It is a standard, two-pass
assembler based on a yacc LALR(1) grammar, and a lex tokenizer.  The assembler
does most of the same things that the old SunOS 4.1.x assembler does, and all
the things that the GNU assembler does that are used in the assembly language
parts of the NetBSD kernel.

I believe there are 10 parts to the source code distribution.

Attached is the shar file for the README and the man page.  There's a
troff document (ms macros) describing this assembler in part 2/10.

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	README
#	asm.1
#
echo x - README
sed 's/^X//' >README << 'END-of-README'
XPermission to use, copy, modify, and distribute this software and
Xits documentation for any purpose and without fee is hereby granted,
Xwithout any conditions or restrictions.  This software is provided
X``as is'' without express or implied warranty.
X
XThis is a SPARC V8 assembler for NetBSD/sparc 1.1.  It is a standard, two-pass
Xassembler based on a yacc LALR(1) grammar, and a lex tokenizer.  The assembler
Xdoes most of the same things that the old SunOS 4.1.x assembler does, and all
Xthe things that the GNU assembler does that are used in the assembly language
Xparts of the NetBSD kernel.
END-of-README
echo x - asm.1
sed 's/^X//' >asm.1 << 'END-of-asm.1'
X'\" t
X.TH ASM 1 "22 MAR 1997"
X.SH NAME
Xasm \- SPARC assembler
X.SH SYNOPSIS
X.B asm
X[
X.B \-O
X.BI \-o\  output_filename
X.B \-L
X.B \-l
X]
X.I infile
X.SH DESCRIPTION
X.B asm
XAssembles SPARC Version 8 assembly language programs and turn them into NetBSD/sparc 1.1
Xobject code modules.
X.PP
X.B asm
Xis a standard, two-pass assembler that accepts all of the SunOS assembler
Xdirectives, most of the GNU assembler directives, and all of the suggested
Xassembly language outlined in ``The SPARC Architecture Manual'', Version 8.
X.SH OPTIONS
X.TP 10
X.B \-0
XOutput information on stderr about offsets of various segments in the 
Xfinal object file.
X.TP
X.BI \-o\  output_filename
XUse
X.I output_filename
Xas the name of the final object file. Default is to use
X.I a.out
Xas the name of the final object file.
X.TP
X.B \-L
XKeep (in symbol table) local symbols, which, by convention, start with `L'
X.TP
X.B \-l
XOutput symbol table debugging information on stderr
X.SH FILES
X.I infile
Xmust be specified.
X.B asm
Xreads the input file twice during assembly.
X.SH BUGS
X.PP
XThe way it handles floating-point constants is apparently compiler-dependent.
XCompiled with GNU C, it can handle the small floating-point constant called
XFLT_MIN.  Compiled with lcc v3.5, it cannot.
X.PP
XIt's slower than it ought to be.
X.PP
XIt assembles SPARC V8 mnemonics just as SPARC V9 machines are appearing.
X.SH "SEE ALSO"
X.PD
X.BR The SPARC Architecture Manual, Version 8
XISBN 0-13-825001-4, Prentice Hall, 1992
X.SH AUTHOR
XBruce Ediger, bediger@csn.net
X.PP
XPermission to use, copy, modify, and distribute this software and its
Xdocumentation for any purpose and without fee is hereby granted,
Xwithout any conditions or restrictions.  This software is provided ``as
Xis'' without express or implied warranty.
END-of-asm.1
exit