Hey there, Been googling but can't find. Thought to ask the wizards. The LLVM interpreter. I am creating a simple wrapper around it to run a script. The program after linking is about 25 megs stripped of debug symbols. This seems a bit large. Is it possible that this could somehow to be drastically reduced? Is it worth going and trying to rip things out? The code which instantiates the interpreter is here: https://github.com/timprepscius/llvmscriptdemo/blob/master/src/llvmscriptdemo.cpp Any help/advice/etc, greatly appreciated. -tim
I have been able to get the executable down to 7 megs. By: auto ee = llvm::Interpreter::create(std::unique_ptr<Module>(mo)); and changing the linker flags. I would like to get it down to a meg or less. -tim On 4/8/16, Tim Prepscius <timprepscius at gmail.com> wrote:> Hey there, > > Been googling but can't find. Thought to ask the wizards. > > The LLVM interpreter. I am creating a simple wrapper around it to run > a script. The program after linking is about 25 megs stripped of > debug symbols. > > This seems a bit large. > > > Is it possible that this could somehow to be drastically reduced? > Is it worth going and trying to rip things out? > > The code which instantiates the interpreter is here: > https://github.com/timprepscius/llvmscriptdemo/blob/master/src/llvmscriptdemo.cpp > > > Any help/advice/etc, greatly appreciated. > > -tim >
This is for a release build of LLVM? or a debug build? On Sat, Apr 9, 2016 at 9:15 AM, Tim Prepscius via llvm-dev < llvm-dev at lists.llvm.org> wrote:> I have been able to get the executable down to 7 megs. > > By: > auto ee = llvm::Interpreter::create(std::unique_ptr<Module>(mo)); > > and changing the linker flags. > > I would like to get it down to a meg or less. > > -tim > > On 4/8/16, Tim Prepscius <timprepscius at gmail.com> wrote: > > Hey there, > > > > Been googling but can't find. Thought to ask the wizards. > > > > The LLVM interpreter. I am creating a simple wrapper around it to run > > a script. The program after linking is about 25 megs stripped of > > debug symbols. > > > > This seems a bit large. > > > > > > Is it possible that this could somehow to be drastically reduced? > > Is it worth going and trying to rip things out? > > > > The code which instantiates the interpreter is here: > > > https://github.com/timprepscius/llvmscriptdemo/blob/master/src/llvmscriptdemo.cpp > > > > > > Any help/advice/etc, greatly appreciated. > > > > -tim > > > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160409/1463e39e/attachment.html>
Hi Not sure what your use case is but you might be interested in VMIR - https://github.com/andoma/vmir VMIR does bitcode interpretion of bitcode and suboptimal-but-better-than-nothing-JIT on ARM The stripped binary is around 170kb on x86_64. It's still in its early stages so it might not suit your needs but, as the README says, it can run all of the gcc-torture tests at all opt-levels. You can contact me off-list if you want to know more. On Sat, Apr 9, 2016 at 4:47 AM, Tim Prepscius via llvm-dev < llvm-dev at lists.llvm.org> wrote:> Hey there, > > Been googling but can't find. Thought to ask the wizards. > > The LLVM interpreter. I am creating a simple wrapper around it to run > a script. The program after linking is about 25 megs stripped of > debug symbols. > > This seems a bit large. > > > Is it possible that this could somehow to be drastically reduced? > Is it worth going and trying to rip things out? > > The code which instantiates the interpreter is here: > > https://github.com/timprepscius/llvmscriptdemo/blob/master/src/llvmscriptdemo.cpp > > > Any help/advice/etc, greatly appreciated. > > -tim > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160409/8cc0df92/attachment.html>
Really neat! -tim On 4/9/16, Andreas Smas <andreas at lonelycoder.com> wrote:> Hi > > Not sure what your use case is but you might be interested in VMIR - > https://github.com/andoma/vmir > > VMIR does bitcode interpretion of bitcode and > suboptimal-but-better-than-nothing-JIT on ARM > > The stripped binary is around 170kb on x86_64. It's still in its early > stages so it might not > suit your needs but, as the README says, it can run all of the gcc-torture > tests at all opt-levels. > > You can contact me off-list if you want to know more. > > On Sat, Apr 9, 2016 at 4:47 AM, Tim Prepscius via llvm-dev < > llvm-dev at lists.llvm.org> wrote: > >> Hey there, >> >> Been googling but can't find. Thought to ask the wizards. >> >> The LLVM interpreter. I am creating a simple wrapper around it to run >> a script. The program after linking is about 25 megs stripped of >> debug symbols. >> >> This seems a bit large. >> >> >> Is it possible that this could somehow to be drastically reduced? >> Is it worth going and trying to rip things out? >> >> The code which instantiates the interpreter is here: >> >> https://github.com/timprepscius/llvmscriptdemo/blob/master/src/llvmscriptdemo.cpp >> >> >> Any help/advice/etc, greatly appreciated. >> >> -tim >> _______________________________________________ >> LLVM Developers mailing list >> llvm-dev at lists.llvm.org >> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >> >
Maybe Matching Threads
- [LLVMdev] llvm msil couple questions
- [LLVMdev] vmkit, jvm, newbie bytecode translation + jit question
- interprete wilcox.test results
- metafor - interpretion of QM in mixed-effects model with factor moderator
- [LLVMdev] [ LLI / MCJIT] re-initializing of lli ...