LLVM Clang & -Os LTO compiler optimization results!

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

*Also:* modern code size and memory use, can't even natively compile llvm/clang on i686 anymore:
[ 83%] Linking CXX shared library ../../lib/libLLVM-8.so
LLVM ERROR: out of memory
clang-8: error: unable to execute command: Aborted (core dumped)
clang-8: error: linker command failed due to signal (use -v to see invocation)

renerebe
Автор

How does one change optimization flags in clang ? What do the commands look like ?

anant
Автор

When compiling libraries, doesn't LTO just never kick in, unless maybe you're building shared objects?
There is no linking down when you build a static library, as a static library is an archive of object files.
LTO is then performed when building something that links against said static library.

Apologies if you covered this, I did not watch the entire video.

asuasuasu