GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing llvm.org — FatLTO - LLVM FatLTO#Introduction#FatLTO objects are a special type of fat object file that contain LTO compatible IR in addition to generated object code, instead of containing object code for multiple target architectures. This allows users to defer the choice of whether to use LTO or not to link-time, and has been a feature available in other compilers, like GCC, for some time. Under FatLTO the compiler can emit standard object files which contain both the
machine code in the Overview#Within LLVM, FatLTO is supported by choosing the
Internally, the Limitations#Linkers#Currently, using LTO with LLVM fat lto objects is supported by LLD and by the GNU linkers via The LLVM gold plugin. This may change in the future, but extending support to other linkers isn’t planned for now. Supported File Formats#The current implementation only supports ELF files. At time of writing, it is
unclear if it will be useful to support other object file formats like Usage#Clang users can specify Compile an object file using FatLTO: $ clang -flto -ffat-lto-objects example.c -c -o example.o Link using the object code from the fat object without LTO. This turns
$ clang -fno-lto -ffat-lto-objects -fuse-ld=lld example.o Alternatively, you can omit any references to LTO with fat objects and retain standard linker behavior: $ clang -fuse-ld=lld example.o Link using the LLVM bitcode from the fat object with Full LTO: $ clang -flto -ffat-lto-objects -fuse-ld=lld example.o # clang will pass --lto=full --fat-lto-objects to ld.lld Link using the LLVM bitcode from the fat object with Thin LTO: $ clang -flto=thin -ffat-lto-objects -fuse-ld=lld example.o # clang will pass --lto=thin --fat-lto-objects to ld.lld |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |