[llvm-dev] Can i reduce my clang/JIT app in size? (original) (raw)

Dennis Luehring via llvm-dev llvm-dev at lists.llvm.org
Wed Sep 19 09:59:45 PDT 2018


and only enable X64 backend?

im on Win7 x64

so i the CMaker parameter enables only the x64 backed

-DLLVM_TARGETS_TO_BUILD=host

will try MinSizeRelease

Am 19.09.2018 um 18:54 schrieb mayuyu.io:

Have you tried building LLVM in MinSizeRelease and only enable X64 backend? Other aspects might require some advanced modification to LLVM/Clang’s source which I’m no professional with

Zhang > 在 2018年9月19日,17:50,Dennis Luehring via llvm-dev <llvm-dev at lists.llvm.org> 写道: > > i want to integrate a C source JITer into my application but the resulting executables are too large > > is it possible to reduce the resulting libs/exe some way? > current VS2017/svn build example: llvm-build\Release\bin\clang-interpreter.exe ~36MB > > for now (that can change later) > - i want to jit simple c-code > - no std library or something > - x64 only > - no deep/full architecture optimization needed > - no c++/templates etc. > > any ideas? > _> ________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev



More information about the llvm-dev mailing list