Side discussion on LLVM C backend

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?

Possibly but not easier than using native backend.

1 Like

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

1 Like