Architecture confusion
:confused: Note how these commands disagree on what architecture I have...
Code:
# cat /proc/cpuinfo | grep Pentium Code:
# ./config.guess Code:
# ./config.sub pentium4-slackware-linux-gnu Now there's 4 different values for the architecture of my computer, i486, i686, i786, and pentium4. I think they should all be set to i786. Here's my questions: 1. Where does uname get the value for architecture type? What sets $HOSTTYPE and $MACHTYPE? 2. What are $HOSTTYPE and $MACHTYPE used for? Can I change the output from uname? If I change them, will that affect any programs? 3. How does config.guess find a value? What are config.sub and config.guess used for during compilation? (These are only included with some sources.) Does $CHOST override their values when I compile? I'm really confused and I've done plenty of searching but I can't find a thing... :scratch: -elyk |
Moved: This thread is more suitable in Programming and has been moved accordingly to help your thread/question get the exposure it deserves.
|
FWIW I've never heard of i786, but i686 is anything >Pentium2/AMD K7 iirc.
Uname -a reveales what class the kernel was compiled for, so you should be safe to swap everything with i686. If you want even more specific processor optimisation you have to find the correct amd/pentium arch value. |
So i686 is P2 and up, in the same way that i386 is just about any Intel processor (386 and up), sort of a least common denominator.
Here's what I've got for my kernel configuration: Code:
$ grep -i pentium /boot/config -elyk |
All times are GMT -5. The time now is 12:55 AM. |