Mail Archives: djgpp/1997/03/23/01:44:05
On Sat, 22 Mar 1997 16:26:17 -0500, Charlie Wine <CWine AT ix DOT netcom DOT com>
wrote:
>Sorry to bother you all with such a simple question, but...
>The FAQs refer to DJGPP as a 16 bit version...
>
>I'm successfully using it, running on pentium.
>I assume it (gcc) is generating 16-bit code.
Wrong-o, it's 32 bit all the way.
>For a benchmark I've created, it runs a a figure of merit
>that scales to the clock speed. e.g. 1.66 = 166 Mhz. pentium.
>(for Windows95) On a 200mhz Pentium-pro, in NT, it gives a
>dismal figure of merit of 0.5
What optimisation setting are you using?
Try putting "-O3 -fomit-frame-pointer -ffast-math -fstrength-reduce"
on the gcc command line like so:
gcc my.c -o my -O3 -fomit-frame-pointer -ffast-math
-fstrength-reduce
(only all on one line, Agent just word wrapped it!)
>Compiling for a 32-bit NT system (with another compiler) gives
>figures of merit 7.0 for 166 mhz pentium and 14 for 200mhz P-pro.
At a guess, you're not including the optimisations, or there's a
heinous flaw in gcc you've uncovered!
>My question is: Are there any compiler options for djgpp gcc,
>and are there libraries that support compilation for 32-bit
>pentium machines?
They all do :-)
>I've slogged through FAQs, and info, and found no help here.
>I'm afraid the simple answer is no.
I'm perplexed as to where you got the idea it's 16 bit and all that.
It most definitely isn't!
>Any hope that I'm just simply missing something?
Oh, yes :-)
ABW
--
"Plug and Play support: WfEWAD will autodetect any installed
Nuclear Arsenals, Laser Satellites, Battlefield Control Networks,
Radar Installations, Fighter Squadrons, and other WfEWAD compliant
devices, including the new Macrosoft Unnatural Keyboard, with
full support for the now-famous Big Red Buttom(tm)."
(Windows for Early Warning and Defence User's manual P26)
Alaric B. Williams Internet : alaric AT abwillms DOT demon DOT co DOT uk
<A HREF="http://www.abwillms.demon.co.uk/">Hello :-)</A>
- Raw text -