home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / sgi / 12308 < prev    next >
Encoding:
Text File  |  1992-08-12  |  1.9 KB  |  42 lines

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