TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Libgccjit.so: an embeddable JIT-compiler based on GCC

99 pointsby crncostaover 11 years ago
I saw this at proggit[1].<p>The gccXllvm competition have been good for both parts, IMO.<p>[1]http:&#x2F;&#x2F;www.reddit.com&#x2F;r&#x2F;programming&#x2F;comments&#x2F;1nn6p3&#x2F;libgccjitso_an_embeddable_jitcompiler_based_on_gcc&#x2F;

4 comments

jordighover 11 years ago
This is very exciting news for GNU Octave.<p>One of the things in which Octave is much slower than Matlab is in looping. Matlab used to have this slowness too until they started JIT compiling their loops. For Octave, this has been more difficult, and the only tool that we&#x27;ve had for accomplishing this has been LLVM.<p>While our JIT compiler code is still very much alpha, it has already been quite a pain to deal with the LLVM JIT &quot;API&quot; because the truth is, they don&#x27;t really have an API, i.e. no promise of stability. Every LLVM release has broken everything and our code keeps having to change in order to accomodate all of those changes. Every. Damn. LLVM. Release.<p>I don&#x27;t know how stable the JIT API for gcc will be, but already it&#x27;s starting to look much better and thought-out as a public API. Here&#x27;s hoping that our fellow GNUs-in-arms can help us make a faster and better Octave!
评论 #6490674 未加载
georgemcbayover 11 years ago
This is pretty cool but even when it is more robust and works with optimized code I think most developers looking for something like this are far more likely to choose LLVM for licensing reasons.<p>Current gcc is GPLv3 and that is very unlikely to change, if you link your project to this you are thoroughly &quot;infected&quot; by the GPL since unlike many GNU projects that are explicitly meant to be linked to by your own projects, gcc&#x27;s core is not LGPL and the runtime library exemption granted by gcc is not sufficient to save you from infection in this use case.
评论 #6490753 未加载
hartrorover 11 years ago
I wonder if this would have been easier to accomplish with LLVM given that gcc&#x27;s api is so notorious to deal with?
评论 #6488890 未加载
评论 #6488536 未加载
rzwover 11 years ago
David is well known in the Python circles. This should be interesting!