Linux From ScratchThis Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Yeah, i read all the relevant FAQ and other files during class today instead of doing work.
For the lazy people, the files mentioned were Binutils, gcc and glibc.
They said that setting optimization flags for these could either make them
not compile correctly or cause problems that would make other programs,
who are dependent of the afor mentioned, break.
+vexer
PS: Thank you for the chapter part, the faq nor book doesn't tell you when
you should start using them if you wanted to.
You could use the flags in chapter 5 too (excepts where mentioned not to), that's probably why they only mention flag settings if it is 'not advised'.
But what's the point of optimizing in chap. 5, it's a temporary environment.
my thoughts exactly! anyone know a good resource that explains the optimization flags in a non-technical way? i.e. what is and isn't worth using and why, rather than what the flags actually do? cos to be honest what the flags actually do doesn't mean as much as what the results are! Of course i like to know what they do but only broadly - i'm never going to actually understand the COMPLETE picture!
For what it's worth, my experience with optimisation is that it isn't worth the risk. Some things (xine-libs, mplayer) won't compile at all if you try to optimise them.
The benefit is that some apps may run faster but generally the difference is so slight that you can't see a difference. The risk is it makes apps crashy. I don't like crashy apps. It reminds me of Mandrake...I would recommend caution.
my experiences are that optimizations are really something lfs user should go for. At least -march option with -O2 is worth trying. O2 implies IMHO all relevant options and setting other doesn't change much. On my box I've all programs (including gcc/glibc, etc.) compiled with -march=athlon-tbird and I've never had stability problem. But (as I've read somewhere), fact that it works for me doesn't mean it will work for you.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.