🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #52856

Re: Why some PC C compilers ar

#52856
From: Kai Henningsen
Date: Sat, 16 May 1992 21:15
30 lines
1804 bytes
kr> Von : kjb@cgl.rmit.oz.au (Fr, 15.05.92 03:30)
kr> Name: Kendall Bennett
kr> Box : RMIT Computer Centre, Melbourne Australia.
kr> MId : <kjb.705897037@godzilla.cgl.citri.edu.au>
kr> RId : <92-05-062@gnusenet.comp.compilers>

kr> thing I did when I first installed DJGPP for my PC (running under DOS
kr> naturally) was to run tests on this program. It took about twice as long
kr> or more to compile under DJGPP, and the resulting program ran
kr> horrendously slow. I set up file approx. 1Mb in size, to be translated,
kr> and the times were...
kr>    BC++: 9.2 seconds
kr>    DJGPP: > 40 seconds

I'm not astonished. Did you look at how DJGPP does I/O? No? Don't look there,
you might get nightmares! :-)

What it does is, first, everything goes through the DJ/GNU/BSD-Libraries; then,
when it arrives at the actual read()/write(), it calls an interrupt which is
intercepted by the driver. The driver, in turn, calls Borland's read()/write()
routines, which may even do a (very slow) cr/lf<->lf translation.

No wonder it's slow.

By the way, last I checked, the same handling is what broke timezone handling
for DJGPP: because it's broken in Borland's Turbo C.

In both cases, double libs make the problem much worse.

MfG Kai
Technical Details
Message-ID: <A40684@MS.maus.de>
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!Germany.EU.net!uniol!hb.maus.de!ms.maus.de!Kai_Henningsen
References: <A25079@HB.maus.de>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,b826384de74ef907,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1992-05-16 16:58:50 PST
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!Germany.EU.net!uniol!hb.maus.de!ms.maus.de!Kai_Henningsen
From: Kai_Henningsen@ms.maus.de (Kai Henningsen)
Newsgroups: gnu.gcc.help
Subject: Re: Why some PC C compilers ar
Message-ID: <A40684@MS.maus.de>
Date: Sat, 16 May 92 21:15:00 GMT
References: <A25079@HB.maus.de>
Organization: MausNet
Lines: 30
X-Gateway: MausGate/News 1.05