# How do I build an executable from my (hello world) simple script?

**URL:** <https://discourse.julialang.org/t/how-do-i-build-an-executable-from-my-hello-world-simple-script/48595>\
**Category:** General Usage\
**Created:** [October 18, 2020, 5:52pm UTC](https://discourse.julialang.org/t/how-do-i-build-an-executable-from-my-hello-world-simple-script/48595 "2020-10-18T17:52:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vadrer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/vadrer/32/17894_2.png) [@vadrer](https://discourse.julialang.org/u/vadrer)\
**Post date:** [October 18, 2020, 5:52pm UTC](https://discourse.julialang.org/t/how-do-i-build-an-executable-from-my-hello-world-simple-script/48595/1 "2020-10-18T17:52:44Z")

</div>

given that Julia executes as fast as C and internally compiles to machine code (except when in interpreted mode and thus using microlisp) - then I can easily get my binary?

looking into command line options with `julia -h` I can’t find something related,  
googling the question leads me to `PackageCompiler` - is this a currently recommended way or there is a simplier approach?

thanks in advance! Vadim

---

<div class="post-metadata">

**Author:** ![mthelm85](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mthelm85/32/224164_2.png) [@mthelm85](https://discourse.julialang.org/u/mthelm85)\
**Post date:** [October 18, 2020, 6:58pm UTC](https://discourse.julialang.org/t/how-do-i-build-an-executable-from-my-hello-world-simple-script/48595/2 "2020-10-18T18:58:10Z")

</div>

I believe [PackageCompiler.jl](https://github.com/JuliaLang/PackageCompiler.jl) is the best way right now. Check out Part 3 of this video (18:22):

[![](https://global.discourse-cdn.com/julialang/original/3X/2/5/25d92fc8d496bba03c1793e16cb4c78a684e8de5.jpeg "JuliaCon 2020 | Shippable apps and custom sysimages with PackageCompiler.jl | Kristoffer Carlsson") ](https://www.youtube.com/watch?v=d7avhSuK2NA)

---

<div class="post-metadata">

**Author:** ![jling](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jling/32/212909_2.png) [@jling](https://discourse.julialang.org/u/jling)\
**Post date:** [October 18, 2020, 7:17pm UTC](https://discourse.julialang.org/t/how-do-i-build-an-executable-from-my-hello-world-simple-script/48595/3 "2020-10-18T19:17:22Z")

</div>

don’t be surprised if your helloworld is \>~100MB

---

<div class="post-metadata">

**Author:** ![vadrer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/vadrer/32/17894_2.png) [@vadrer](https://discourse.julialang.org/u/vadrer)\
**Post date:** [October 18, 2020, 7:45pm UTC](https://discourse.julialang.org/t/how-do-i-build-an-executable-from-my-hello-world-simple-script/48595/4 "2020-10-18T19:45:50Z")

</div>

… I am prepared for large executable size after I’ve found several executables of about 100M and even one 180Mb dll in Julia installation:)
