*BSD News Article 74153


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.mel.connect.com.au!news.mira.net.au!vic.news.telstra.net!act.news.telstra.net!psgrain!newsfeed.internetmci.com!info.ucla.edu!nnrp.info.ucla.edu!news.bc.net!nntp.portal.ca!van-bc!n1van.istar!van.istar!west.istar!ott.istar!istar.net!n3ott.istar!news.comnet.ca!tomqnx.tomqnx.com!tom
From: tom@tomqnx.tomqnx.com (Tom Torrance at home)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: GNU assembler
Date: 18 Jul 1996 20:48:54 GMT
Organization: Comnet Communications
Lines: 24
Message-ID: <4sm7vm$lub@executor.comnet.ca>
References: <31ED89D2.41C6@raleigh.ibm.com>
NNTP-Posting-Host: 205.206.213.103
X-Newsreader: TIN [version 1.2 PL2]

Tony Rynan (rynan@raleigh.ibm.com) wrote:
: Hi All,

: I am currently punishing myself and doing a X86 assembler course
: at University. The course requirement is any X86 assembler but
: Borlan C++/TASM is recommended. I would prefer to use the GNU "as"
: in FreeBSD but I am having some troubles getting the assembler and
: loader to produce a working binary.

: I have created a file called fred.s that contains a single nop.
: I run "as -o stuff fred.s" and then "ld stuff". An a.out is produced
: that automagically core dumps (segmentation violation).

: Can anyone give me a few clues (or examples) on how to write and
: compile a piece of assembler ???? 

This sounds like a very bad idea (no offense intended). Any Assembler
Course is largely about how to communicate with the underlying OS.
If you have problems, your TA will not be able to help you...

--
tom@tomqnx.com  Tom Torrance
27 Dayton Cr., Nepean Ont., Canada   K2H 7N8
My opinions are personal, and not those of my employer.