LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 04-11-2006, 06:02 PM   #1
teufelhund
Member
 
Registered: Aug 2005
Location: Midwestern USA
Distribution: Slackware 10.2
Posts: 54

Rep: Reputation: 15
compile options


This may be a vague question, but I'll try anyway...

During a Gentoo installation, compile options are set immediately after downloading the Portage tree. CPU architecture, CFLAGS, CXXFLAGS etc. This reportedly makes compiled programs more stable, faster etc. (At least, as long as you know what you're doing.)

My question is: Is this possible in Slackware? At what point is it possible? Would there be any noticeable benefit to doing this? Finally, what's the likelihood of permanently pooching one's system by fiddling with such settings?

Thanks,

Matt
(For how long I've used Linux, I feel like such a newb...)
 
Old 04-11-2006, 08:30 PM   #2
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,227

Rep: Reputation: 86
You'll gain almost nothing in Slackware because even if apps are 486-compatible, they are optimized for 686 too.
If you really want to tweak, then you better take a look at kernel compile and make your own.
If you use some high cpu usage programs like mathematics or video converting then you can optimize especially for you processor.
And if you REALLY want to recompile all Slack as Gentoo do, then you will loose your time.
 
Old 04-11-2006, 09:27 PM   #3
piete
Member
 
Registered: Apr 2005
Location: Havant, Hampshire, UK
Distribution: Slamd64, Slackware, PS2Linux
Posts: 465

Rep: Reputation: 44
Quote:
even if apps are 486-compatible, they are optimized for 686 too.
Forgive me, I don't understand what you mean by this. Surely setting ARCH=i686 is more optimised for i686 than setting ARCH=i486? Have i misunderstood something about the way GCC handles ARCH?

In response to your specific questions:

* Is this possible in Slackware?

Yes.

* At what point is it possible?

It is possible at compile time! Since Slackware packages are binary packages (they dump the precompiled binaries straight into your system) you would have to manually hunt down and compile your own from source. You use disks 3 & 4 for a bit of a short cut in the hunting down of those sources, and these disks also provide the scripts from which the binary packages (on disks 1 and 2) are made.

* Would there be any noticeable benefit to doing this?

Noticable? Maybe. I think in all cases it depends on what the application is. Like the poster above mentions, if you're doing some CPU intensive stuff then you should find transcode (for example) works faster on an i686 with extensions than on a generic i486, simply because of the way GCC interprets this (at least this is my understanding).

* what's the likelihood of permanently pooching one's system by fiddling with such settings?

Slim. At worst you'll set "inefficient" flags - you can't set "wrong" flags, 'cause it probably won't compile if you do! Even if you manage to compile with the wrong flags, it possibly won't run (highly unlikely) thus negating any damaging effects it might have! =)

- Piete.

Quote:
(For how long I've used Linux, I feel like such a newb...)
As a friend likes to say: Every day's a school day!
 
Old 04-11-2006, 09:45 PM   #4
teufelhund
Member
 
Registered: Aug 2005
Location: Midwestern USA
Distribution: Slackware 10.2
Posts: 54

Original Poster
Rep: Reputation: 15
From your replies it sounds like something I shouldn't bother with. I could use my time much better elsewhere.

Nothing I do is all that intensive...I just like to tweak.

Thanks for the information.

Matt
 
Old 04-11-2006, 11:49 PM   #5
MannyNix
Member
 
Registered: Dec 2005
Location: ~
Distribution: Slackware -current, OpenBSD
Posts: 449

Rep: Reputation: 41
Hi, if you like to tweak you can have a lot of fun with slackbuilds, check this post:
http://www.linuxquestions.org/questi...ht=slackbuilds
Besides tweaking in Slackware is a real pleasure

Last edited by MannyNix; 04-12-2006 at 04:41 PM.
 
Old 04-12-2006, 03:22 AM   #6
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
Because Slackware comes in binary format and could run even in old machines from the start using 80386 code, it's not explicitly optimised for new machines, which use extended 80686/80786 code like Pentium IV. So he does not not use all available extensions which came with new processors. If you want full optimization, recompile packages to suit your own cpu type.

Last edited by Alien_Hominid; 04-12-2006 at 03:24 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can you determine an RPMs compile options? DualQuad Fedora 2 10-12-2005 07:47 AM
kernel compile options keysoft Linux - Newbie 4 02-24-2005 01:01 AM
./Compile options for Slackware redjokerx Slackware 6 08-31-2004 03:33 PM
emerge compile options MrJoshua Linux - Software 0 06-07-2004 04:58 PM
Kernel compile options Sammy2ooo Linux - General 4 11-26-2003 08:43 AM


All times are GMT -5. The time now is 12:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration