Mail Archives: djgpp/1996/05/24/19:34:29
<rkwcvdz AT rivier1 DOT puk DOT ac DOT za> wrote:
>Hi. I hope someone out there will be able to help me with all the
>questions that ive got about Djgpp.
>
>I am a fairly effecient Pascal/Delphi programmer , who now has to
>learn C/C++ .
>
>[1] This is my first experience with C/C++ ,and ive been told to use Djgpp
> as it is a true 32bit compiler . Does it have a Dos extender like
> Dos/4gw or Borland Pascals (which is a 16 bit extender).
>
No, v2 does not use extenders, only DPMI servers. It comes with a free
DPMI server, CWSDPMI (Highly recommended). Version 1 of DJGPP,however,
does use an extender.
>[2] Does it support the method of inline Assembly that i am used to with
> Borland Pascal . eg
> Program Example;
> Begin
> .
> .
> asm
> mov ax,13h
> int 10h;
> end;
> .
> end.
>
No, it is not compatible with intel syntax assembly, it uses AT&T syntax
instead. It takes some getting used to, but isn't bad. The inline
assembler is quite powerful, though. The above would go like this:
asm("
movw $0x13, %ax
int $0x10
");
> Does it come with a external Assembler like Tasm , does the language
> differ much from Turbo Assembler .
>
Yes, it does come with an external assembler. See above for language
assembly style.
>[3] Does it support the writing and using of Dlls , like borland Pascal.
> If so , will they be compatible with all my Dlls that ive written with
> BP.
>
I'm not sure, but I don't think so. It does support DXE's, which may be
similar.
>[4] How good is it for writing games .Code size , effeciency and speed .
> Does it compile Native 486 and Pentium code . How fast is the code
> compared to Watcom C/C++.
Good for writing games (check out Quake), produces fairly large
executables, and compiles 486 (not pentium as far as I know). The code
is reported to be slightly faster than Watcom on average.
>
>[5] Are there many Freeware(im only a student) graphics,sound libs for
> Djgpp.
Yes!
>
>[6] How compatible is it with other C/C++ compilers , mostly Watcom and
> Borlands Compiler , which is used at work.
It is pretty compatible with other compilers, but since it doesn't use
extenders, protected-mode library calls or handling may be incompatible
(???, someone else might be able to clear this up, this is just what I
think). Inline asm is incompatible.
>
>[7] I know this question is not relevant to this gropu , but what good
> books are there to learn C/C++ , they shouldnt be compiler Specific.
> Any good game programming Books ....
>
There's a quite a few out there. I thought that Teach Yourself Game
Programming in 21 days was excellent for starting off.
>Sorry for making this so long but i want to be sure that im doing the
>right thing.
>
>Please post this to my e-mail and not to the newsgroup
>
>Thanx in Advance
>rkwcvdz AT rivier1 DOT puk DOT ac DOT za
>
>********************************************
>* *
>* The Road goes ever on and on *
>* Down from the door where it began *
>* and now far ahead the road has gone *
>* and i must follow it if i can *
>* pursuing it with weary feet *
>* until it meets some larger path *
>* where many errantries meet and , *
>* wither then i cannot say *
>* *
>* J.R.R Tolkien _The Lord Of The Rings_ *
>* *
>********************************************
- Raw text -