== Quote from Walter Bright ([email protected])'s article > bearophile wrote: > > Partially unrelated note: LLVM plans to add a profile guided > > optimization level too, to be used with -O6, as GCC too does. LLVM > > also plans to do something that GCC is not currently able to do, the > > level -O7 lifelong optimization. This is like in Java, the profile > > guided optimization happens at normal runtime too, so you need to > > keep the llvm compiler along with your shipped binary. D2 language in > > future can use that technology too. With care and work, this will > > allow de-virtualize functions at runtime in D2/D3. > > http://llvm.org/releases/1.4/docs/CommandGuide/html/llvmc.html > Believe it or not, you can do profile guided optimizations with the dmd > profiler and optlink. The profiler will emit a file to be passed to the > linker which will set the layout of functions to minimize paging.
Is that still a relevant optimization? It probably made sense circa 1995 when computers had much less memory, but now I would think that binaries are so much smaller than a typical computer's memory that they almost never get paged out.
