LinuxQuestions.org
Visit Jeremy's Blog.
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 11-13-2006, 02:21 PM   #1
stormtracknole
Senior Member
 
Registered: Aug 2005
Distribution: Slackware, RHEL
Posts: 1,258

Rep: Reputation: 228Reputation: 228Reputation: 228
slackbuild question


Sorry if this has been answered before, but I couldn't find my answer using the search feature. Anyway, here it goes...I'm build a few packages using a provided slackbuild script. I have changed a few things in the script to optimize the package. Here is my question, in the O2 flag section, should I leave it as O2 or O3? What is the difference between the both of them? Thanks for the replies!!
 
Old 11-13-2006, 03:20 PM   #2
bsdunix
Senior Member
 
Registered: May 2006
Distribution: BeOS, BSD, Caldera, CTOS, Debian, LFS, Mac, Mandrake, Red Hat, Slackware, Solaris, SuSE
Posts: 1,761

Rep: Reputation: 80
I suggest O2. Here's a good discussion about it:

"CFLAGS"

"The choice: Summarised

-O2 smaller binary, faster to load from disk, less RAM usage, better cache usage in systems with moderate cpu cache, higher reliability;

-O3 slight to moderate speed increase for some applications, higher memory (RAM, cache and disk) usage, longer load times from disk, very occasional problems with compilation; expect less than 1% improvement in *overall* execution speed."

http://gentoo-wiki.com/CFLAGS

and

"Options That Control Optimization"
http://gcc.gnu.org/onlinedocs/gcc-3....e-Options.html
 
Old 11-13-2006, 03:24 PM   #3
stormtracknole
Senior Member
 
Registered: Aug 2005
Distribution: Slackware, RHEL
Posts: 1,258

Original Poster
Rep: Reputation: 228Reputation: 228Reputation: 228
Thanks!!! Just what I was looking for!!
 
  


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
a generic SlackBuild shilo Slackware 46 06-20-2008 12:45 AM
xmame slackbuild Harp00 Slackware 17 04-27-2006 06:51 PM
SlackBuild CrEsPo Slackware 2 03-19-2006 02:58 PM
KDE.SlackBuild spaceballs Slackware 8 04-01-2005 09:42 AM
SlackBuild system thegeekster Slackware 7 06-01-2004 07:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:42 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
Open Source Consulting | Domain Registration