Mail Archives: djgpp/1999/01/29/10:42:07
> ----------
> De: Rafael García[SMTP:rafael AT geninfor DOT com]
> Enviada: Sexta-feira, 29 de Janeiro de 1999 11:07
> Para: djgpp AT delorie DOT com
> Assunto: performance
>
> Hello.
>
Hello.
> I am testing gcc to work instead of Borland C 3.1 but programs are much
> slower. For example, a sequential search in a file takes 18 seconds,
> whereas
> same operation with BC ends in 2.3 sec.
>
> In fact, I expected to achieve a better times than with BC because I need
> huge memory model with BC and suppose this makes program slower.
>
> I don't understand. Anybody can explain?
>
I'm troubled too, but I think that the diference in access speed is that the
DJGPP have to switch to real mode to call DOS funcs and it makes your
program slower. Have you tried make your program disk buffer greater.
Remember, DJGPP can access much more than 64KB per selector.
> Thanks.
>
José Paulo
Rio de Janeiro - Brazil
- Raw text -