Article View: comp.os.os2.programmer
Article #2264Re: 0S/2 gcc
From: John Serafin
Date: Sat, 03 Oct 1992 04:06
Date: Sat, 03 Oct 1992 04:06
28 lines
1587 bytes
1587 bytes
rogge@embezzle.Stanford.EDU (Sven Rogge) writes: >Hello GCC programmer, > I wanted to see the speed difference between gcc for OS/2 and >the Microsoft C under DOS. To my big surprise the DOS was faster. My >little program just calculated the exp() and sin() ... of some numbers >and I am using the operating system on a computer without a >coprocessor. > What is the reason for that and is there a way to change it. The math functions in the gcc/2 standard library are extremely slow. I have a program with a lot of trig that takes 180 seconds to run in gcc/2 but only takes 29 seconds with emx. Microsoft C 6.0 takes 42 seconds. When I use gas in gcc/2 to compile the trig functions from the DJGPP library and link them with gcc/2, the time is reduced to 29 seconds, the same as emx. DJGPP runs the same program in 28 seconds. All times are for a 486/33. >Thanks for help and information, >Sven >(rogge@fizzle.stanford.edu) -- John P. Serafin | Operating a bicycle is more like driving than riding. jps@netcom.com | Operating an automobile is more like riding than driving.
Technical Details
Message-ID:
<1992Oct3.040636.9998@netcom.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!europa.asd.contel.com!darwin.sura.net!wupost!csus.edu!netcom.com!jpsReferences:
<1992Oct2.183128.12386@EE.Stanford.EDU>Show Full Headers
Complete Article Headers
Newsgroups: comp.os.os2.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!europa.asd.contel.com!darwin.sura.net!wupost!csus.edu!netcom.com!jps From: jps@netcom.com (John Serafin) Subject: Re: 0S/2 gcc Message-ID: <1992Oct3.040636.9998@netcom.com> Keywords: os2 gcc gnu Organization: Netcom - Online Communication Services (408 241-9760 guest) References: <1992Oct2.183128.12386@EE.Stanford.EDU> Distribution: su Date: Sat, 3 Oct 1992 04:06:36 GMT Lines: 28