From: josepva AT informatica DOT TELERJ DOT net DOT br Message-ID: <39AE1D927549D111A88F00A0C94B9C7D628ECB@RJ01MAI01> To: djgpp AT delorie DOT com Subject: RE: performance Date: Fri, 29 Jan 1999 14:41:24 -0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2232.9) Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id KAA08245 Reply-To: djgpp AT delorie DOT com > ---------- > 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