Cross Compilation

Hi all,
I want to do cross compilation of shared libraries from windows to linux x64.
I don’t find much information on this. I need your support on how to do this.

Thanks.

sir, this is a Wendy’s :slight_smile:

1 Like

sorry, I couldn’t resist the joke, but on a more helpful note:

shared libraries are normally associated with (ahead-of-time) compiled languages. While Numba is able to perform ahead of time compilation, it is primarily a just-in-time compiler. Hence the joke, because it doesn’t make sense to talk about cross-compilation just-in-time.

Unless you are dealing with a special use case, it would be better to ignore cross-compilation, and let Numba JIT compile directly on the target machine. If you want to avoid the delay associated with JIT compilation, you can use AOT compilation (on the target machine) at installation time or, more conveniently, use Numba’s cache option, which will store the result of the compilation and avoid JIT compiling every time.

hope this helps,
Luk

1 Like