Mail Archives: djgpp/1999/05/02/10:45:12
On Sun, 2 May 1999, Alexander_Pankov wrote:
> For example, I compile such small program and get... 61Kb!!! WHY???
See section 8.13 of the DJGPP FAQ list.
> I need VERY-VERY small com-file, for "32-DOS".
Think about it: how can a program that switches the CPU to protected mode
and then calls DOS services from a protected-mode code be small? All the
code that does this trick needs to be there, or else the program won't
work.
The minimal DJGPP program is 28KB; see the FAQ about how to make such
programs.
I still think that the size is not what you need, but you don't explain
what do you need, so I cannot help you.
> Compiling *.o file, for
> example, I get less than 500 bytes! How to link this small file???
Well, simply use the *.o file, and you have your small file.
> And where can I get description of *.o files???
The binary format is described in the Binutils docs (get v2gnu/bnuNNs.zip
and read there).
> I heard that DJGPP supports user-defined calls. For example, Delphi
> sends some parameters through registers EAX, ECX, EDX. How can I
> define my own calls?
This is described in the GCC docs, look for the section that describes
function attributes and read there.
- Raw text -