Mail Archives: djgpp/1999/07/30/15:22:49
On Wed, 28 Jul 1999, Oleg Ossovitskii wrote:
> Why my files is so big? Even if my file is empty it has size approx. 105 KB :(
> When I compile file 'void main(){}' in Borland C++ 5.02 it has size ~30KB, but
> in Djgpp it ~105KB.
See section 8.13 of the DJGPP FAQ list, it explains why this happens, how
to make your programs much smaller, and why you shouldn't bother about
this at all.
> And why my some my simple progs ran in protected mode?
Because GCC doesn't know how to produce 16-bit real-mode code (unless you
hack GCC sources).
> When I run them under
> pure MS-DOS 6.22 or PC-DOS 7.0 I got message 'No: DPMI - Get csdpmi*b.zip'.
So get CWSDPMI, like the message says. It's in v2misc/csdpmi4b.zip on
the same site where you got DJGPP. See section 6.2 of the FAQ for more
details.
> Which command-line option I must use to compile program in real mode?
None. DJGPP cannot produce real-mode programs.
> PS Does my program ran under *nix ??
No, they call DOS services which aren't available on Unix. Linux has a
DOS emulator called DOSEmu, where you can run DJGPP programs (see section
3.4 of the FAQ). Or you can take your sources and compile them on Unix.
> And how make executable file with the same name as source file?
This is explained in the file README.1ST which comes with djdev202.zip:
gcc -o filename.exe filename.c
- Raw text -