Mail Archives: djgpp/2001/01/30/05:24:30
On Tue, 30 Jan 2001, Mike Darrett wrote:
> Are the RSXNTDJ and MingW32 ports of gcc based on DJGPP's code?
They are different ports of the same compiler.
> Code
> generated with gpp's -O3 switch produces the fastest code I've ever
> seen... knocks the socks off even Borland C++ 5.5's free compiler.
Run-time speed depends not only on the code produced by the compiler, but
also on its alignment, the alignment of data, and, to some extent, on the
run-time memory layout. These are different between the 3 ports.
However, the resultant speed differences are usually around 10% or so,
except in some extreme cases.
> I'm
> interested in writing OpenGL and DirectX code for Windows, though, and
> don't think I can use DJGPP for those environments?
You cannot use DJGPP to write Windows programs.
Note that graphics on Windows has some overhead due to interaction with
Windows.
- Raw text -