www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/09/23/10:52:23

Date: Tue, 23 Sep 1997 17:51:58 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: "M. Schulter" <mschulter AT value DOT net>
cc: djgpp AT delorie DOT com
Subject: Re: hello.s, anyone?
In-Reply-To: <607m3p$805$3@vnetnews.value.net>
Message-ID: <Pine.SUN.3.91.970923174658.15819C-100000@is>
MIME-Version: 1.0

On 23 Sep 1997, M. Schulter wrote:

> that can compile with
> 
> gcc -Wall -g -o hello.exe hello.s
> 
> and produce a program that will run successfully on a variety of DPMI
> servers, including DJGPP's own and very distinguished CWSDPMI.

One way is to link your GAS program with crt0.o and write your code as the
`main' function that crt0 calls. 

Another possibility is to get crt0.s from djlsr201.zip, remove all the 
stuff that's unnecessary for your standlone program (if you can figure 
that out ;-) and proceed with adding whatever you want.

One way or another, crt0.s is the place where you can look for info on 
what a program should do to be a good DJGPP-style DPMI client.

- Raw text -


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