# Bring Julia code to embedded hardware (ARM)

**URL:** <https://discourse.julialang.org/t/bring-julia-code-to-embedded-hardware-arm/19979>\
**Category:** Maker\
**Created:** [January 23, 2019, 12:57pm UTC](https://discourse.julialang.org/t/bring-julia-code-to-embedded-hardware-arm/19979 "2019-01-23T12:57:50Z")\
**Posts on this page:** 1\
**Showing post:** 46

<div class="post-metadata">

**Author:** ![Palli](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/palli/32/3380_2.png) [@Palli](https://discourse.julialang.org/u/Palli)\
**Post date:** [July 28, 2020, 2:37pm UTC](https://discourse.julialang.org/t/bring-julia-code-to-embedded-hardware-arm/19979/46 "2020-07-28T14:37:24Z")

</div>

What do you mean by:

> [@cawhitley](#):
>
> willingness to restrict language constructs in smaller platforms if necessary

The garbage collector can and needs to be “constrained” for hard-real-time (but not all projects), and can already be done without changing the “language”. Mostly the user needs to be contained, not use all constructs of the language, like `eval`, that generates code at runtime (something you wouldn’t do in embedded, other languages for, do not have that). You can compile to assembly with PackageCompiler.jl, and even when using `eval` but then your code needs to have a compiler with it making the binary huge. There are ways to disable code you know will not be used, and PC could probably make smaller code by changing it 8not the Julia language), or some similar project. There are some older (outdated Intel’s Julia2C and I seem to remember another compiling Julia to C):

> [@How to use a julia compiled object from within a C program](https://discourse.julialang.org/t/how-to-use-a-julia-compiled-object-from-within-a-c-program/8475):
>
> Hi all ! I need to develop an interface to use an existing Julia project from within a C porgram. As I am VERY newbie in Julia, I started creating a VERY simple Julia script to better understand the operation mode. The steps I need to achieve are (I guess) : Write a simple julia script Create an object (using output-o compilation option) Create a shared object (by gcc -share) Create a .h header to use this library from C Use the Julia library from C But I am experiencing problems with the …

---

_[View the full topic](https://discourse.julialang.org/t/bring-julia-code-to-embedded-hardware-arm/19979)._
