Article View: gnu.gcc.help
Article #49407Re: gcc & sparc v8
From: Casper H.S. Dik
Date: Wed, 26 Jan 1994 11:55
Date: Wed, 26 Jan 1994 11:55
27 lines
1925 bytes
1925 bytes
can@cam-orl.co.uk (Cosmos Nicolaou) writes: >is it really the case that gcc will generate code for pre-sparc-v8 (e.g. >lx/sparc 10) cpu's by default and that the only way to enable the use of >the v8's hardware mul/div instructions is via explicit use of the mv8 >flag?? Yes. The same is true for the Sun C compiler as well. Currently, only the MicroSPARC I & II and the SuperSPARC[+] have v8 instructions. The main reason for not using those instructions by default is the fact that programs compiled with -v8 (-xcg92) run much slower on pre-v8 SPARCs. In Solaris 2.3 only the sun4d kernel is compiled with SPARC v8 instructions. >Do similar comments apply to machines with an fpu? (e.g. lx) All Sun SPARCs have been shipped with FPUs (except for some very early 4/1xx). In Solaris 2.x, those early CPUs have been disabled and the FPU instructions are emulated in the kernel. The early FPUs are so broken that code generated for them needs all kinds of costly work arounds. Instead, Sun has chosen to generate code that runs (much) faster on all new CPUs, and disable the FPU on the broken systems (4/1xx and 4/2xx). Casper
Technical Details
Message-ID:
<2i5ln5$6sq@mail.fwi.uva.nl>Path:
arc1-ca.pugleaf.net!gmd.de!xlink.net!zib-berlin.de!fauern!news.dfn.de!scsing.switch.ch!swidir.switch.ch!univ-lyon1.fr!ghost.dsi.unimi.it!batcomputer!caen!saimiri.primate.wisc.edu!xanth.cs.odu.edu!concert!gatech!howland.reston.ans.net!EU.net!sun4nl!fwi.uva.nl!casperReferences:
<CAN.94Jan26110221@prawn.cam-orl.co.uk>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,c737816e53dbc60b X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1994-01-26 20:19:35 PST Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!zib-berlin.de!fauern!news.dfn.de!scsing.switch.ch!swidir.switch.ch!univ-lyon1.fr!ghost.dsi.unimi.it!batcomputer!caen!saimiri.primate.wisc.edu!xanth.cs.odu.edu!concert!gatech!howland.reston.ans.net!EU.net!sun4nl!fwi.uva.nl!casper From: casper@fwi.uva.nl (Casper H.S. Dik) Newsgroups: gnu.gcc.help Subject: Re: gcc & sparc v8 Date: 26 Jan 1994 11:55:17 GMT Organization: FWI, University of Amsterdam Lines: 27 Distribution: world Message-ID: <2i5ln5$6sq@mail.fwi.uva.nl> References: <CAN.94Jan26110221@prawn.cam-orl.co.uk> NNTP-Posting-Host: adam.fwi.uva.nl