Penedo wrote:

> And still - is there a good way to find out the exact cpu information in a
> useful way for a script? Something a-la the script used by gcc's source code
> to automatically decide which architecture it should build for? (it's been
> ages since I last built GCC so maybe it's different now).

Why not just open /proc/cpuinfo and parse the data there. Use
"cat /proc/cpuinfo" to see whats there.

> Solaris has some programs to identify the exact Sparc CPU it's running on
> and list the most suitable architecture to use in order of descending
> priority, (maybe it's called "hinv"?) something like this for linux would be
> great.

Solaris needed that because Solaris' /proc/ file system contains
mostly (all?) binary data.

Erik
-- 
+-----------------------------------------------------------+
  Erik de Castro Lopo
+-----------------------------------------------------------+
"I don't think any MS Exec will ever die of old age. Satan
doesn't need the competition."
-- Digital Wokan on LinuxToday.com
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to