home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.sgi
- Path: sparky!uunet!ukma!wupost!cs.utexas.edu!sun-barr!ames!pioneer.arc.nasa.gov!lamaster
- From: lamaster@pioneer.arc.nasa.gov (Hugh LaMaster)
- Subject: Re: what should an arch command return on an indigo?
- Message-ID: <1992Nov16.215158.12838@news.arc.nasa.gov>
- Sender: usenet@news.arc.nasa.gov
- Organization: NASA Ames Research Center, Moffett Field, CA
- References: <grl.721642136@groucho> <1992Nov16.200138.24748@cc.ic.ac.uk>
- Date: Mon, 16 Nov 1992 21:51:58 GMT
- Lines: 64
-
- In article <1992Nov16.200138.24748@cc.ic.ac.uk>, vulture@imperial.ac.uk (Thomas Sippel - Dau) writes:
- |> In article <grl.721642136@groucho>, grl@brb.dmt.csiro.au (Greg Lehmann) writes:
- |> - SunOS has an arch command that returns a value like sun4 or sun3 depending on
- |> - what the application architecture of the machine is.
- |> -
- |> - Would mips be an appropriate value for an sgi arch on an indigo?
-
- I like to use "sgi4d" for 32-bit R3000-based machines. Analogous to "sun3"
- and "sun4".
-
- *There should be a standard for the architecture string, and a standard command
- to return it!*
-
- |>
- |> Probably not, as there are so many other machines having a MIPS processor
- |> (DECstation, CDC 4000, ... ) and which will not run IRIX binaries. We use here
- |> sg3 and sg4, where the diffenrence is that type sg4 will not run on an R3000
- |> machine - we never had a sizeable IRIX 3.x installation.
- |>
- |> For system binaries inst sorts out quietly what is required, and the diskless
- |> client support requires separate share trees, so only user compiled binaries
- |> are affected.
- |>
- |> By the way, write all your scripts to use the ARCH environment variable rather
- |> than the command, and leave it to those who maintain the cshrc and profile
- |> files to get the variable from the command. This is necessary so that you
- |> can pass the -target- architecture to an install script, rather than having
- |> it use the -current- one.
-
-
- I have been using /bin/cpp to obtain the architecture by deduction.
- Unfortunately, this is being broken of late by two things:
-
- 1) C compiler unbundling, and systems with no cc, or cpp
-
- 2) /bin/cpp is no longer operative on some systems, even when the compiler is
- there, and cpp appears to be there. Unfortunately, there is no guaranteed
- replacement.
-
-
- |>
- |> Thomas
- |>
- |> --
- |> *** This is the operative statement, all previous statements are inoperative.
- |> * email: cmaae47 @ ic.ac.uk (Thomas Sippel - Dau) (uk.ac.ic on Janet)
- |> * voice: +44 71 589 5111 x4937 or 4934 (day), or +44 71 823 9497 (fax)
- |> * snail: Imperial College of Science, Technology and Medicine
- |> * The Center for Computing Services, Kensington SW7 2BX, Great Britain
-
- It is silly that there is no standard way to get an architecture string.
-
- If ARCH becomes a standard environment variable, we still need a standard
- for what the string returns. I like names which have two pieces concatenated,
- so that I can pick it apart again if necessary. "sun" "3" or "4", "sgi" "4d",
- "dec" "vax" or "mips" or "alpha? or perhaps (shorter=better) axp?" ...
-
-
-
- --
- Hugh LaMaster, M/S 233-9, UUCP: ames!lamaster
- NASA Ames Research Center Internet: lamaster@ames.arc.nasa.gov
- Moffett Field, CA 94035-1000 Or: lamaster@george.arc.nasa.gov
- Phone: 415/604-1056 #include <usenet/std_disclaimer.h>
-