Re:Clang/LLVM using the built in assembler builds all of Fre...
by pohl on Saturday October 30, 2010 @03:59PM
(#1851666)
It looks like LLVM does have a stack protector pass:
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-hask...
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.