Mail Archives: djgpp/1997/09/25/14:21:39
> This is a program that needs no sbrk or any other
> crt0 service to allocate space for variables because
> the assembler reserves space for L1. Right?
Correct. It's stack usage is so small that the
stack is still pointed to the transfer buffer also.
> Who (What) sets the segment registers, stub.asm?
> It doesn't need a main because it is crt0.o that
> calls main. Right? And is it stub.asm that calls
> "start"? Amazing!
stub.asm loads the COFF image into DPMI memory, sets
the values for the segment registers, then
transfers control to the executable code in DPMI memory.
ld defines that the entry point to the COFF image is "start".
- Raw text -