home *** CD-ROM | disk | FTP | other *** search
- Path: vb.franken.de!volker
- From: volker@vb.franken.de (Volker Barthelmann)
- Subject: Re: SAS C++ slower than GNU ??
- Newsgroups: comp.sys.amiga.programmer
- References: <4d17sv$146$1@mhadg.production.compuserve.com>
- X-Newsreader: TIN [AMIGA 1.3 950726BETA PL0]
- Message-ID: <volker.0e8q@vb.franken.de>
- Date: 12 Jan 96 01:00:08 MET
- Organization: home
-
- ron flory (71053.3551@CompuServe.COM) wrote:
- :
- : has anybody noticed that SAS C++ 6.56 is slower than GNU 2.6.3 (the
- : executable, i mean..).
-
- Yes, gcc seems to generate slightly faster executables in most cases (there
- are also cases where SAS generates better code).
-
- : I tried all the optimisation options. If i'm missing something, i'm
- : open to ideas. I'm talking about 5-20 times slower than GNU.
-
- This is an extremely big difference.
- Without knowing the program and the generated code, I would guess
- that either
-
- - Your program does not really calculate anything but is some kind of
- benchmark and contains dead code or Your program is extremely small
-
- - the program spends almost its entire running time with function calls
- that are much faster in gcc's library (sometimes there are extremely
- large differences even in gcc programs when linked with ixemul rather
- than libnix) or perhaps inlined; possible candidates might be malloc(),
- free() of buffered IO
-
- - the program uses heavy floating point math; it can make very much
- difference what math libraries are used, if a fpu is addressed directly
- and if fpu instructions have to be trapped with 040/060
-
- Just a guess.
-
- Volker
-
-