| Summary: | Improvement for gcc-optimization guide | ||
|---|---|---|---|
| Product: | [OLD] Docs on www.gentoo.org | Reporter: | Agostino Sarubbo <ago> |
| Component: | Other documents | Assignee: | Docs Team <docs-team> |
| Status: | RESOLVED NEEDINFO | ||
| Severity: | normal | ||
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| URL: | http://www.gentoo.org/doc/en/gcc-optimization.xml | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
|
Description
Agostino Sarubbo
2011-07-25 13:30:50 UTC
Hi Agostino, it isn't obvious to me what the benefits of such a code are. We already encourage users to use -march=native, so they won't gain anything by specifying the optimization target by hand. Please feel free to reopen and explain the matter in more detail if I got you wrong. Hi there, While I find -march=native to be rather handy form time to time, I think it hides any true understanding of what is actually occurring with the use of that particular switch. Therefore, I support Ago's request to add in an informational section regarding how a user might learn what 'native' actually means in the specific instance of use. Further, there has been discussion of the usefulness of this numerous times on the -dev (or -core cannot recall atm) MLs, and there exists a nice page on gentoo-wiki regarding how this can be useful. Finally, since we are talking about GCC optimization, I am strongly in favor of a more complete treatment of the various switches illuminated by the use of Ago's little one-liner (and other methods of achieving similar), like --param and how that can affect the optimization. Thank you for your attention and kind consideration. p.s. I would be delighted to help out with writing some of this, as I have quite a bit of material collected over the past several years. p.s.s. I also think a discussion of the consequences of using 'native' with respect to binpkg portability would be a boon to users as well. p.s.s.s. As always, for a more in-depth and comprehensive treatment, we can point users to the GCC docs for the specific version they are interested in. p.s.s.s.s. Ago, do you have a patch prepared? It might be handy to create one. p.s.s.s.s.s. just kidding about yet another post script :-D Hi Matt, could you please provide a few links to the relevant discussions? After you've done that, please don't forget to reopen this bug. |