Mail Archives: djgpp/1997/06/05/09:54:33
On Thu, 5 Jun 1997, Gyorgy Abonyi wrote:
> This's becouse the DOS4GW extender what watcom uses, replaces the most real
> mode DOS functions, with it's own 32-bit versions, so with Watcom the file
> I/O operations don't need 32/16 bit mode switching, what is really slow...
This is all incorrect. First, DOS4GW is just another DOS extender, so it
eventually calls DOS. Therefore, the switch from real to protected mode
and back is still required. Second, the time wasted by the compiler in
mode switches is relatively small, especially if you compile with
optimizations, so I/O is not the major factor in compilation speed. Try
compiling with and without optimizations and see the big difference (in
GCC, it's around factor of 2); since the amount of I/O is the same no
matter what level of optimization is involved, you will see that most of
the time the compiler needs raw CPU power (to parse the code and optimize
it).
- Raw text -