www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/03/23/01:44:05

From: alaric AT abwillms DOT demon DOT co DOT uk (Alaric B. Williams)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Simple 32-bit question.
Date: Sun, 23 Mar 1997 02:54:49 GMT
Message-ID: <3334969b.455274@news.demon.co.uk>
References: <33344E79 DOT 7D52 AT ix DOT netcom DOT com>
NNTP-Posting-Host: abwillms.demon.co.uk
Lines: 61
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019