From owner-freebsd-questions Sun Nov 18 8:22: 2 2001 Delivered-To: freebsd-questions@freebsd.org Received: from smtpzilla3.xs4all.nl (smtpzilla3.xs4all.nl [194.109.127.139]) by hub.freebsd.org (Postfix) with ESMTP id BD40C37B405 for ; Sun, 18 Nov 2001 08:21:54 -0800 (PST) Received: from custcom (osprey.xs4all.nl [213.84.100.228]) by smtpzilla3.xs4all.nl (8.12.0/8.12.0) with SMTP id fAIGLhST056033; Sun, 18 Nov 2001 17:21:43 +0100 (CET) Message-ID: <000801c1704d$d5e79040$9600000a@custcom> From: "R. Hartman" To: "Giorgos Keramidas" , "Anthony Atkielski" Cc: "FreeBSD Questions" References: <031801c16fb3$dbe19df0$0a00000a@atkielski.com> <20011118033947.GD28425@hades.hell.gr> <03a201c1702e$44eb1c70$0a00000a@atkielski.com> <20011118160251.GA468@hades.hell.gr> Subject: Re: Windows/DOS .OBJ files to FreeBSD objects? Date: Sun, 18 Nov 2001 17:26:46 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Have a look at NASM. It's free and very complete. Currently still in = beta version 0.98 if I'm correct. It produces object files for several = platforms including DOS object file and ELF. As running NASM with the -hf option lists : >> valid output formats for -f are (`*' denotes default): * bin flat-form binary files (e.g. DOS .COM, .SYS) obj MS-DOS 16-bit/32-bit OMF object files rdf Relocatable Dynamic Object File Format v1.1 << You'll find the relevant links and more at: http://www.programmersheaven.com/zone5/ http://www.programmersheaven.com/zone5/cat25/index.htm Which I came across only recently. Hope this helps. Regards, Ronald ----- Original Message -----=20 From: "Giorgos Keramidas" To: "Anthony Atkielski" Cc: "FreeBSD Questions" Sent: Sunday, November 18, 2001 17:02 Subject: Re: Windows/DOS .OBJ files to FreeBSD objects? > On 2001-11-18 13:40:50, Anthony Atkielski wrote: > > Giorgos writes: > > > > > Does a86 even work on FreeBSD? The homepage > > > seems to suggest that it's a program written > > > for DOS and/or Windows. > > > > Correct. That's why I am wondering if there are any utilities that = can change a > > Windows/DOS OBJ file to a FreeBSD object file, so that I can = assemble modules > > under Windows or DOS, and then move the objects to a FreeBSD system = (after some > > sort of conversion) and link them there. >=20 > I'm not sure if a conversion can be done *after* the file has been > assembled to .OBJ. >=20 > > > b) Use some other assembler, that is freely > > > available under FreeBSD. > > > > What other assemblers can you recommend? A86 has the advantage of = truly > > extraordinary simplicity, unlike MASM and most other overcomplicated = macro > > assemblers. >=20 > If you like using Intel's syntax (the one used by MASM and TASM in > DOS/Windows) then you might like `nasm' which is available both for > Windows and FreeBSD. It can save its output in .OBJ and ELF .o files, > so you will probably find it useful. >=20 > If you tend to write mostly C, with a few asm lines that you want to > link to your code, GCC's inline assembly or GNU as(1) [both available > on a stock FreeBSD installation] will probably suit you fine :) >=20 > -giorgos >=20 >=20 > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message >=20 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message