Date: Tue, 23 Sep 1997 17:51:58 +0300 (IDT) From: Eli Zaretskii To: "M. Schulter" cc: djgpp AT delorie DOT com Subject: Re: hello.s, anyone? In-Reply-To: <607m3p$805$3@vnetnews.value.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk 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.