LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   what's my package x86? (https://www.linuxquestions.org/questions/slackware-14/whats-my-package-x86-342247/)

dosnlinux 07-11-2005 05:11 PM

what's my package x86?
 
I finally got a chance to compile some packages, but I don't know about gcc default x86. Do I put packagename-i486-1.tgz or do I put the x86 for my processor(i686)?

marghorp 07-11-2005 05:31 PM

it doesn't really matter. Both should work, as it is the same architecture.
The x86 (hence the name) can stand for 386,486 or 686 (pentium, AMD athlon and such processors).

dosnlinux 07-12-2005 03:17 PM

I know it doesn't really matter. It's just a matter of curiosity:) and wanting to have my packages labled correctly.(step 1 on my road to learning slack package management)

marghorp 07-12-2005 04:05 PM

it might just be a bit optimized for the architecture. if you have i686, then if you can find i686 use that, otherwise any of the x86 types will fit.

dosnlinux 07-12-2005 06:59 PM

Quote:

Originally posted by marghorp
it might just be a bit optimized for the architecture
Right. I want to know if the packages that I compile on my machine are bit optimized for my architecture, or the origional architecture that the slackware gcc was compiled for(i486).

marghorp 07-13-2005 05:21 PM

The optimization can be set using FLAGS or editing the /etc/make.conf file. Search the web for both. What you will set, will be how the stuff is compiled.

dosnlinux 07-14-2005 03:09 PM

Thank you very much:D

Make has a conf file!?!:scratch:
Maybe there's other things that can be tweaked in it...

I've seen FLAGS in some of the compiler messages so I'll have to check the make files and do some research:study:

-0- 07-15-2005 09:26 AM

IIRC /etc/make.conf is a gentoo thing.


man make says squat about it, so i'd think as much.

MMYoung 07-15-2005 09:46 AM

Quote:

Originally posted by dosnlinux
I know it doesn't really matter. It's just a matter of curiosity:) and wanting to have my packages labled correctly.(step 1 on my road to learning slack package management)
You may want to take a look at this little HOWTO GCC Myths and Facts. You can also get "technical" with the GCC documentation Intel 386 and AMD x86-64 Options.

Basically you can set a "general" cpu type with the following CFLAG variable:
"-march=i686"
This will compile the program for all 686 processors, this includes Athlons as well.

If you have a Pentium IV CPU you can further optimize with this:
"-march=i686 -mcpu=pentium4"
This is the same as above, but it "turns on" special features that are avialable to the Pentium 4.

The way that Pat V compiles most, not all but most, of the software for Slackware is to use:
"-march=i486 -mcpu=i686"
This allows for the most compatibility with nearly every processor out there with the special features that will be used if the package is installed on a 686 processor.

HTH,
MMYoung

dosnlinux 07-20-2005 12:54 PM

Quote:

You may want to take a look at this little HOWTO GCC Myths and Facts. You can also get "technical" with the GCC documentation Intel 386 and AMD x86-64 Options.
Thanks for the links! The one at freshmeat.net was really helpful. I guess I'll have to take a closer look at my makefiles from now on. I cant wait to finish the GCC manual! I've also starting downloading the other GNU tools manuals to see what wealth of information they hide.


All times are GMT -5. The time now is 01:04 PM.