[comp.arch] Program to discern machine architecture information

montnaro@spyder.crd.ge.com (Skip Montanaro) (06/14/90)

I used to have a program (called "machine", I believe) that displayed useful
information about the machine your were running it on, things like its
endianness, type of arithmetic (twos- or -one-complement), word size, and so
forth.

I no longer have that program and find myself in need of such a beast. I've
grep the c.s.u and c.s.m archive inidexes for things like "*mach*" and
"*arch*", but to no avail. If anyone has a pointer to such a program, I'd
appreciate an email note. I will summarize if there is enough interest.

Thanks,
--
Skip (montanaro@crdgw1.ge.com)

mark@mips.COM (Mark G. Johnson) (06/14/90)

For floating-point, the program MACHAR from netlib might be just the ticket:

MACHAR
machar.f   Fortran 77 source.  Both single- and double-precision
           versions can be extracted from the supplied source
           code with simple editing changes.  NOTE: at least one
           version MUST be extracted before the source will compile.
macharc    C source for machar and a driver.  Float and  double  
           versions are selected with compiler directives.

MACHAR is an evolving subroutine for dynamically determining thirteen
fundamental parameters associated with floating-point arithmetic.  The
original version was published in Cody and Waite, Software Manual for
the Elementary Functions, Prentice-Hall, 1980.  The present version has
been modified to operate correctly with IEEE floating-point arithmetic.
It will malfunction on many CRAY and most CYBER systems, however.  See
W. J. Cody, "MACHAR: A subroutine to dynamicall determine machine
parameters," TOMS 14, December, 1988 for details.
-- 
 -- Mark Johnson	
 	MIPS Computer Systems, 930 E. Arques M/S 2-02, Sunnyvale, CA 94086
	(408) 524-8308    mark@mips.com  {or ...!decwrl!mips!mark}

montnaro@spyder.crd.ge.com (Skip Montanaro) (06/15/90)

Thanks to all the people who responded to my query with references to
config. FYI, the latest version appears to be 4.2, dated in 1990. I will
send it to anyone who's interested.

--
Skip (montanaro@crdgw1.ge.com)