www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/06/23/03:58:05

Date: Sun, 23 Jun 1996 10:46:23 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Paul Fox <pgf AT american DOT com>
Cc: djgpp AT delorie DOT com
Subject: Re: ASM to as or .obj to .o conversion?
In-Reply-To: <4qeqra$bi7@news1.wing.net>
Message-Id: <Pine.SUN.3.91.960623104136.1039O-100000@is>
Mime-Version: 1.0

On 21 Jun 1996, Paul Fox wrote:

> hi -- i have a largish (several thousand lines!  :-/ ) routine written in
> Intel style assembler (or DOS style, or MASM style, whatever you want to
> call it).  i need to port the code (which is quite portable, other than
> syntax) to linux.  so i need to either:
> 
> 	a) convert the ASM-style code to as/gas style syntax, or
> 	   alternatively,

Read section 17.3 of the DJGPP FAQ list (v2/faq200b.zip from the same 
place you get DJGPP).  It describes 2 such tools.

> 
> 	b) use a .obj (generated under DOS) directly with ld.

This is usually a bad idea (can you mix .obj files from, say, BC and MSC 
and hope this to work?), but section 17.5 of the FAQ tells you what 
options do you have if you decide to give it a try anyway.

> does anyone know of a tool to do either of these?  i'm sure that with
> a few evenings and a generous dose of perl/awk/sed/whatever i can
> convert the asm to as code, but i value my evenings...  :-)
> 
> any tips/pointers appreciated.

A tip: always search the FAQ first, especially if you value your
evenings ;-).

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019