Return to BSD News archive
#! rnews 1625 bsd 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!usenet.eel.ufl.edu!spool.mu.edu!howland.reston.ans.net!swrinde!cs.utexas.edu!chi-news.cic.net!nntp.coast.net!news.kei.com!news.mathworks.com!uunet!inXS.uu.net!news-m01.ny.us.ibm.net!ausnews.austin.ibm.com!usenet From: Tony Rynan <rynan@raleigh.ibm.com> Newsgroups: comp.unix.bsd.freebsd.misc Subject: GNU assembler Date: Thu, 18 Jul 1996 10:48:18 +1000 Organization: IBM Austin Lines: 24 Message-ID: <31ED89D2.41C6@raleigh.ibm.com> NNTP-Posting-Host: power.au.ibm.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 2.01 (X11; I; AIX 1) 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 ???? regards Tony -- Tony Rynan IBM RS6000 & SP2 System Specialist Ph: +61 2 354 7243 IBM Australia Fax: +61 2 354 7797 Coonara Ave, West Pennant Hills Rynan@raleigh.ibm.com Australia 2120 -----PGP KEY AVAILABLE ON REQUEST-----