5 ms·
GCC can do that.
by mansr 12y ago
GCC can do that.
- readerrr 12y agoYou are mistaken, unless you can prove me wrong. Care to elaborate?
- dalke 12y agoI assume mansr refers to profile guided optimizations in gcc and many other compilers. See http://en.wikipedia.org/wiki/Profile-guided_optimization http://en.wikipedia.org/wiki/Profile-guided_optimization.
- thoughtpolice 12y agoGCC has supported `-fprofile-generate` and `-fprofile-use` for profile-guided optimization since (at least[1]) GCC 3.4, which was released over 10 years ago: https://gcc.gnu.org/onlinedocs/gcc-3.4.0/gcc/Optimize-Options.html https://gcc.gnu.org/onlinedocs/gcc-3.4.0/gcc/Optimize-Option... Firefox is an example of an application that ships production binaries with PGO. [1] It was actually supported earlier than this, but I didn't search further; the 3.4.0 manual says "New -fprofile-generate and -fprofile-use command-line options to simplify the use of profile feedback", implying it was there before in a less convenient form.
- fche 12y agoOr rather, "I may be mistaken in my grand assertion, but I'll place the burden of proof on you".