2 ms·
Next you’ll tell me there are optimization settings other than -mtune=native
by bee_rider 3y ago
Next you’ll tell me there are optimization settings other than -mtune=native
- klodolph 3y agoWell, duh. There’s also -funroll-loops.
- trelane 3y agoYou always have to remember to fun roll the loops, though. :) https://forums.gentoo.org/viewtopic-t-245041-start-25.html https://forums.gentoo.org/viewtopic-t-245041-start-25.html
- adrian_b 3y agoI am not sure what you mean, but in the chrooted environment where you compile for a distinct machine you obviously use configuration options, including compiler flags, appropriate for the target computer, not for the host computer, so "-mtune=native" cannot be used. My point is that you do not need to setup a binrepo or any other complication like this. You can install easily Gentoo on a very weak computer, by performing the installation on a typical desktop computer, which may run a different Linux distribution, not necessarily also Gentoo, and then just copying the files. The Gentoo manual has always included information on how to install Gentoo inside a chrooted environment.
- trelane 3y ago> not for the host computer, so "mtune=native" cannot be used. Right, I am sure they intended it to be absurd in an amusing way.
- bee_rider 3y agoIndeed I did. Although, I do somewhat think that working out good optimization flags for cross-platform compiles is a moderately unusual skill, even among people who compile things regularly. Hopefully I caveated that sufficiently, I’m not saying it is a hyper-advanced dark art or anything. I have in the past set up code on a cluster to just compile on one node for the first run with -mtune=native because I’m lazy!
- Maken 3y agoNever forget -Ofast.