# About static compilation and static analysis

**URL:** <https://discourse.julialang.org/t/about-static-compilation-and-static-analysis/87492>\
**Category:** Internals & Design\
**Created:** [September 19, 2022, 8:30pm UTC](https://discourse.julialang.org/t/about-static-compilation-and-static-analysis/87492 "2022-09-19T20:30:44Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![martin.d.maas](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/martin.d.maas/32/50964_2.png) [@martin.d.maas](https://discourse.julialang.org/u/martin.d.maas)\
**Post date:** [September 19, 2022, 10:50pm UTC](https://discourse.julialang.org/t/about-static-compilation-and-static-analysis/87492/6 "2022-09-19T22:50:48Z")

</div>

Hi Palli,

StaticCompiler.jl is only compatible with a small subset of Julia as of now. Check out their docs. For example, it is not compatible with [anything that contains ccall](https://github.com/tshort/StaticCompiler.jl/issues/80)

As for PackageCompiler, I simply couldn’t get it to work for several test cases (beyond trivial ones). I will try again to check if the recent improvements have fixed the problems I encountered, but one of them was extremely long compile times to the point I think my old laptop crashed, so I’m reluctant to try again.

Btw, for static compilation I actually meant StaticCompiler.jl. It is indeed the case that it can’t support all of Julia’s features, so major changes should be needed at some level (not sure which).

---

_[View the full topic](https://discourse.julialang.org/t/about-static-compilation-and-static-analysis/87492)._
