Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Nov 2001 17:26:46 +0100
From:      "R. Hartman" <rhartman@xs4all.nl>
To:        "Giorgos Keramidas" <charon@labs.gr>, "Anthony Atkielski" <anthony@atkielski.com>
Cc:        "FreeBSD Questions" <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Windows/DOS .OBJ files to FreeBSD objects?
Message-ID:  <000801c1704d$d5e79040$9600000a@custcom>
References:  <031801c16fb3$dbe19df0$0a00000a@atkielski.com> <20011118033947.GD28425@hades.hell.gr> <03a201c1702e$44eb1c70$0a00000a@atkielski.com> <20011118160251.GA468@hades.hell.gr>

index | next in thread | previous in thread | raw e-mail

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 ----- 
From: "Giorgos Keramidas" <charon@labs.gr>
To: "Anthony Atkielski" <anthony@atkielski.com>
Cc: "FreeBSD Questions" <freebsd-questions@FreeBSD.ORG>
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.
> 
> I'm not sure if a conversion can be done *after* the file has been
> assembled to .OBJ.
> 
> > > 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.
> 
> 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.
> 
> 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 :)
> 
> -giorgos
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
> 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000801c1704d$d5e79040$9600000a>