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

mayuyu.io via llvm-dev llvm-dev at lists.llvm.org
Wed Sep 19 09:54:03 PDT 2018


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