Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* ccc: slower at fp?
@ 1999-10-25 17:39 Ron Farrer
  1999-10-26  6:57 ` Alan Young
  0 siblings, 1 reply; 3+ messages in thread
From: Ron Farrer @ 1999-10-25 17:39 UTC (permalink / raw)
  To: axp-list


I've been playing with the Compaq C Compiler on some code and it seems to be as fast as egcs at int, but slower at fp. Now I'm sure I'm doing something wrong... The command I use looks like "ccc -O3 -lcpml -lm mycode.c -o myapp" is there something else I should be doing or doing differently?


TIA,

Ron
-- 
=========================
= Ronald Burnett Farrer =
=========================
------------------------------------
- "mailto:rbf@magnesium.net"       -
- "http://www.magnesium.net/~rbf/" -
------------------------------------
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! If you let Windows dominate, expect the worst: !
! "WORLD.SYS is corrupt, reboot UNIVERSE Y/n"    !
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
???????????????????????????????????????????????????????
? "How could this [Y2K Bug] be a problem in a country ?
? where we have Intel and Microsoft?" -- Al Gore      ?
???????????????????????????????????????????????????????


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: ccc: slower at fp?
@ 1999-10-25 18:35 Designer Seven
  0 siblings, 0 replies; 3+ messages in thread
From: Designer Seven @ 1999-10-25 18:35 UTC (permalink / raw)
  To: axp-list

If you read the man pages for ccc... it cautions about
using -O3 or -O4... as in certain cases, those
optimizations can slow things down. It may be safer to
use -O2 unless you know for sure the optimizations in
-O3 and above will benefit your code.

Or generally, you can just do a -fast.

D.

--- Ron Farrer <rbf@toxic.magnesium.net> wrote:
> 
> I've been playing with the Compaq C Compiler on some
> code and it seems to be as fast as egcs at int, but
> slower at fp. Now I'm sure I'm doing something
> wrong... The command I use looks like "ccc -O3
> -lcpml -lm mycode.c -o myapp" is there something
> else I should be doing or doing differently?
> 
> 
> TIA,
> 
> Ron
> -- 
> =========================
> = Ronald Burnett Farrer =
> =========================
> ------------------------------------
> - "mailto:rbf@magnesium.net"       -
> - "http://www.magnesium.net/~rbf/" -
> ------------------------------------
> !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
> ! If you let Windows dominate, expect the worst: !
> ! "WORLD.SYS is corrupt, reboot UNIVERSE Y/n"    !
> !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
>
???????????????????????????????????????????????????????
> ? "How could this [Y2K Bug] be a problem in a
> country ?
> ? where we have Intel and Microsoft?" -- Al Gore    
>  ?
>
???????????????????????????????????????????????????????
> 
> -- 
> To unsubscribe: send e-mail to
> axp-list-request@redhat.com with
> 'unsubscribe' as the subject.  Do not send it to
> axp-list@redhat.com
> 
> 

__________________________________________________
Do You Yahoo!?
Bid and sell for free at http://auctions.yahoo.com


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: ccc: slower at fp?
  1999-10-25 17:39 Ron Farrer
@ 1999-10-26  6:57 ` Alan Young
  0 siblings, 0 replies; 3+ messages in thread
From: Alan Young @ 1999-10-26  6:57 UTC (permalink / raw)
  To: axp-list

Can you post the code to the beta support group at

http://www.iol.unh.edu/linux/C/problems.html

and/or

http://www.iol.unh.edu/linux/C/discussion.html

Alan

Ron Farrer wrote:
> 
> I've been playing with the Compaq C Compiler on some code and it seems to
> be as fast as egcs at int, but slower at fp. Now I'm sure I'm doing
> something wrong... The command I use looks like "ccc -O3 -lcpml -lm
> mycode.c -o myapp" is there something else I should be doing or doing
> differently?
> 
> TIA,
> 
> Ron
> --
> =========================
> = Ronald Burnett Farrer =
> =========================
> ------------------------------------
> - "mailto:rbf@magnesium.net"       -
> - "http://www.magnesium.net/~rbf/" -
> ------------------------------------
> !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
> ! If you let Windows dominate, expect the worst: !
> ! "WORLD.SYS is corrupt, reboot UNIVERSE Y/n"    !
> !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
> ???????????????????????????????????????????????????????
> ? "How could this [Y2K Bug] be a problem in a country ?
> ? where we have Intel and Microsoft?" -- Al Gore      ?
> ???????????????????????????????????????????????????????
> 
> --
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1999-10-26  6:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-10-25 18:35 ccc: slower at fp? Designer Seven
  -- strict thread matches above, loose matches on Subject: below --
1999-10-25 17:39 Ron Farrer
1999-10-26  6:57 ` Alan Young

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox