# Side discussion on LLVM C backend

**URL:** <https://discourse.julialang.org/t/side-discussion-on-llvm-c-backend/19797>\
**Category:** Community\
**Tags:** llvm\
**Created:** [January 18, 2019, 8:36pm UTC](https://discourse.julialang.org/t/side-discussion-on-llvm-c-backend/19797 "2019-01-18T20:36:46Z")\
**Posts on this page:** 3\
**Page:** 2

<div class="post-metadata">

**Author:** ![jpsamaroo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jpsamaroo/32/46804_2.png) [@jpsamaroo](https://discourse.julialang.org/u/jpsamaroo)\
**Post date:** [January 18, 2019, 9:57pm UTC](https://discourse.julialang.org/t/side-discussion-on-llvm-c-backend/19797/21 "2019-01-18T21:57:07Z")

</div>

So, those responses were as I expected. To extend this discussion slightly, might it be feasible to take this C code generated from llvm-cbe, statically link it with the libraries that it calls into, and compile all the things into a (potentially very small) static binary? If not currently, does that seem feasible in the near future, with sufficient contributions from the community?

Edit: By feasible, I mean, is it feasible and generic, such that you don’t have to hand-replace a bunch of calls so that they link correctly for each **independent** binary you want to produce?

---

<div class="post-metadata">

**Author:** ![yuyichao](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/yuyichao/32/20_2.png) [@yuyichao](https://discourse.julialang.org/u/yuyichao)\
**Post date:** [January 18, 2019, 10:01pm UTC](https://discourse.julialang.org/t/side-discussion-on-llvm-c-backend/19797/22 "2019-01-18T22:01:17Z")

</div>

Possibly but not easier than using native backend.

---

<div class="post-metadata">

**Author:** ![datnamer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/datnamer/32/3471_2.png) [@datnamer](https://discourse.julialang.org/u/datnamer)\
**Post date:** [January 20, 2019, 1:03am UTC](https://discourse.julialang.org/t/side-discussion-on-llvm-c-backend/19797/23 "2019-01-20T01:03:11Z")

</div>

I understand now, thanks @StefanKarpinski and @yuyichao for patiently answering my questions and @jpsamaroo for pushing what I meant to ask.

[Previous page](https://discourse.julialang.org/t/side-discussion-on-llvm-c-backend/19797.md?page=1)
