home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.sgi
- Path: sparky!uunet!cs.utexas.edu!sun-barr!ames!elroy.jpl.nasa.gov!ucla-cs!ucivax!megatek!rgs
- From: rgs@megatek.uucp (Rusty Sanders)
- Subject: Re: R4000 compiler directive, is there one ???
- Message-ID: <1992Aug12.195518.12380@megatek.uucp>
- Organization: Megatek Corporation, San Diego, California
- References: <ob1oc18@zuni.esd.sgi.com>
- Date: Wed, 12 Aug 1992 19:55:18 GMT
- Lines: 31
-
- From article <ob1oc18@zuni.esd.sgi.com>, by olson@anchor.esd.sgi.com (Dave Olson):
- > In <1992Aug7.104745.20016@cc.umontreal.ca> rick@proust.CERCA.UMontreal.CA (Richard Lefebvre) writes:
- > | I have the following FORTRAN program (see below) in which
- > | I do a simple initialization of variable. I know that the
- > | first loop is is not done properly in terms of efficiency
- > | but that is not the point of my query. My question is why
- > | is it faster on the Indigo R3k than a Crimson R4k, is there
- > | a special compiler directive to make code R4k usable only,
- > | ie binary generated only usable on a R4k.
- > |
- > | Both are running IRIX 4.0.4, the Indigo has 16Mbytes and the
- > | Crimson has 64Mbytes. And -O2 is used for the optimization.
- >
- > One thing to add to John's response. -mips2 is the way to
- > turn on some of the r4k features (more specifically, those
- > in the r6k, such as hardware squareroot).
- > [more about -mips2]
-
- I seem to remember seeing in some version or other of the compiler
- (sorry, I don't know if it was beta, release, or what) that there
- was a switch -r4000. The switch had no effect on the output code,
- but was used by the instruction scheduler in the assembler.
- To check to see if you have it (other then just trying it) you can
- do a strings /usr/bin/cc|grep 4000 and see what shows up.
-
- I strongly suspect that it's unsupported, and may not even exist
- in released software. But you can always just go look.
- --
- ----
- Rusty Sanders, Megatek Corp. --> rgs@megatek.com or...
- ...ucsd! ...hplabs!hp-sdd! ...ames!scubed! ...uunet!
-