Mail Archives: djgpp/1997/09/23/10:52:23
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 -