4 ms·
As a big fan of FreeBSD, I've been following this development with great interest. I just compiled a few select ports with clang, and I look forward to rebuild
by SageRaven 16y ago
As a big fan of FreeBSD, I've been following this development with great interest. I just compiled a few select ports with clang, and I look forward to rebuilding all my ports to see what compiles and see how the system feels speed-wise.
However, as a server admin, I've become fond of the extra layer of protection ProPolice (gcc's "-fstack-protector" option) provides. I know it's a small thing, but does anyone know if clang has a similar feature?
Also, are there any non-default optizations I can try out? With the stock gcc in FreeBSD, I've been able to get away with using "-O3" on everything with no build failures or instability.
- pohl 16y agoIt looks like LLVM does have a stack protector pass: https://llvm.org/svn/llvm-project/cfe/tags/Apple/clang-54.1/clang/lib/CodeGen/StackProtector.cpp https://llvm.org/svn/llvm-project/cfe/tags/Apple/clang-54.1/... As for non-default optimizations, this passage from the following article best explains how much there is for you to explore: Which LLVM passes to use, and which order to run them, with what analysis in between, is a huge search problem, though. There are roughly 200 optimization and analysis flags, and these, mostly, can be run in any order, any number of times. If we want to run say, twenty of the passes (about what -O3 does), that’s what, about 10^46 arrangements! http://donsbot.wordpress.com/2010/03/01/evolving-faster-haskell-programs-now-with-llvm/ http://donsbot.wordpress.com/2010/03/01/evolving-faster-hask...