delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/06/09/11:45:11

From: eplmst AT lu DOT erisoft DOT se (Martin Stromberg)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Linking NASM programs
Date: 9 Jun 2002 15:09:32 GMT
Organization: Ericsson Erisoft AB, Sweden
Lines: 55
Message-ID: <advr3c$hpe$1@antares.lu.erisoft.se>
References: <000801c20fac$e77cc2e0$c65b2fcb AT r7k3u8>
NNTP-Posting-Host: lws256.lu.erisoft.se
X-Newsreader: TIN [version 1.2 PL2]
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Michael Reeves (mjreeves AT gcom DOT net DOT au) wrote:
: I am learning how to make assembly program using Jeff Duntemann's book. =
: I have been having a happy time making .com programs but have struck a =
: problem with linking .obj files to .exe format. I tried the linker with =
: the CD but it doesn't seem to work.

You will need to generate .o not .obj files if you want to use them
with DJGPP. Select the right output format (coff or DJGPP coff or
something like that) and let the object files end  in .o and you
should be successful.

: I have been spending quite some time reading the FAQ and have come to =
: the conclusion that I am completely out of my depth as far as writing =
: windows applications is concerned - but this wasn't what I set out to =
: do.

You won't be writing a WINDOZE aplication with DJGPP. DJGPP generates
DOS applications.

: I am contemplating the DJGPP files which I have downloaded, but they are =
: quite large and don't appear to be a good idea to try and transfer to =
: the old machine, even if I knew which ones were absolutely necessary. I =
: have got the gut feeling that I don't need all the files that are there, =
: as I am only using NASM, but I could be completely of the track there, =
: too.

It depends on what you want to do.

If all you want is write assembly with NASM, you shouldn't need DJGPP
at all.

Do you want to have access to DJGPP libc? If so then you're going to
need (at least parts of) djdev*.zip plus a linker. "ld" in bnu*b.zip
should do the job.

: Is there a simple solution to this problem, or a good source of =
: information that I can look to?
: I would like to make programs that will run on old machines, such as 386 =
: - is that a problem in getting a linker?

No. All DJGPP programs run on 386s or later CPUs.

: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
: <HTML><HEAD>
: <META content=3D"text/html; charset=3Diso-8859-1" =
: http-equiv=3DContent-Type>
: <META content=3D"MSHTML 5.00.2614.3500" name=3DGENERATOR>
: <STYLE></STYLE>

Please don't post HTML.


Right,

						MartinS

- Raw text -


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