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 11-13-2006, 01:21 PM   #1
stormtracknole
Member
 
Registered: Aug 2005
Location: The Big Easy
Distribution: Slackware, RHEL
Posts: 817

Rep: Reputation: 104Reputation: 104
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, 02:20 PM   #2
bsdunix
Senior Member
 
Registered: May 2006
Distribution: Caldera, CTOS, Debian, FreeBSD, Mac OS X, Mandrake, Minix, OpenBSD, Slackware, SuSE
Posts: 1,757

Rep: Reputation: 78
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, 02:24 PM   #3
stormtracknole
Member
 
Registered: Aug 2005
Location: The Big Easy
Distribution: Slackware, RHEL
Posts: 817

Original Poster
Rep: Reputation: 104Reputation: 104
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-19-2008 11:45 PM
xmame slackbuild Harp00 Slackware 17 04-27-2006 05:51 PM
SlackBuild CrEsPo Slackware 2 03-19-2006 01:58 PM
KDE.SlackBuild spaceballs Slackware 8 04-01-2005 08:42 AM
SlackBuild system thegeekster Slackware 7 06-01-2004 06:59 PM


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

Main Menu
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