# How to run RISC-V Julia on other architectures?

**URL:** <https://discourse.julialang.org/t/how-to-run-risc-v-julia-on-other-architectures/124399>\
**Category:** General Usage\
**Tags:** risc-v\
**Created:** [January 3, 2025, 6:50am UTC](https://discourse.julialang.org/t/how-to-run-risc-v-julia-on-other-architectures/124399 "2025-01-03T06:50:53Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![raman\_kumar](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/raman_kumar/32/26782_2.png) [@raman\_kumar](https://discourse.julialang.org/u/raman_kumar)\
**Post date:** [January 3, 2025, 6:50am UTC](https://discourse.julialang.org/t/how-to-run-risc-v-julia-on-other-architectures/124399/1 "2025-01-03T06:50:54Z")

</div>

I want to try RISC-V Julia on my laptop which have x86-64 architecture. How to run RISC-V Julia on other architectures also?

---

<div class="post-metadata">

**Author:** ![giordano](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/giordano/32/2166_2.png) [@giordano](https://discourse.julialang.org/u/giordano)\
**Post date:** [January 3, 2025, 9:13am UTC](https://discourse.julialang.org/t/how-to-run-risc-v-julia-on-other-architectures/124399/2 "2025-01-03T09:13:41Z")

</div>

You can use [QEMU](https://www.qemu.org/) (that’s what also Docker uses under the hood to run containers built for foreign architectures)

---

<div class="post-metadata">

**Author:** ![raman\_kumar](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/raman_kumar/32/26782_2.png) [@raman\_kumar](https://discourse.julialang.org/u/raman_kumar)\
**Post date:** [January 3, 2025, 12:54pm UTC](https://discourse.julialang.org/t/how-to-run-risc-v-julia-on-other-architectures/124399/3 "2025-01-03T12:54:11Z")

</div>

Which of the following QEMU would be good for my old 2GB RAM laptop? Will it support RISC-V ?

1. qemu-base
2. qemu-desktop
3. qemu-full

 ![image](https://global.discourse-cdn.com/julialang/original/3X/2/a/2a98940002188b3a8447dc5042ad1b50535337dd.png) @giordano

---

<div class="post-metadata">

**Author:** ![xiaoxi](https://avatars.discourse-cdn.com/v4/letter/x/a9adbd/32.png) [@xiaoxi](https://discourse.julialang.org/u/xiaoxi)\
**Post date:** [January 5, 2025, 10:51am UTC](https://discourse.julialang.org/t/how-to-run-risc-v-julia-on-other-architectures/124399/4 "2025-01-05T10:51:52Z")

</div>

It seems that you would need `qemu-system-riscv`  
[https://archlinux.org/packages/extra/x86\_64/qemu-system-riscv/](https://archlinux.org/packages/extra/x86_64/qemu-system-riscv/)

As I understand it, qemu in system mode requires an operating system. So, since you want to use qemu with so little RAM, it may be better to run qemu in user mode. To do so, it appears that it needs to `qemu-user-static` or `qemu-user`.  
[https://archlinux.org/packages/extra/x86\_64/qemu-user-static/](https://archlinux.org/packages/extra/x86_64/qemu-user-static/)  
[https://archlinux.org/packages/extra/x86\_64/qemu-user/](https://archlinux.org/packages/extra/x86_64/qemu-user/)

This blog post may help you.

> **[RISC-V simulation with Qemu](https://medium.com/@e1d1/risc-v-simulation-with-qemu-61ea8f2d8f4b)**
>
> The RISC-V architecture has become very popular recently. In this article, I will provide you with a solution to get an environment for…

---

<div class="post-metadata">

**Author:** ![raman\_kumar](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/raman_kumar/32/26782_2.png) [@raman\_kumar](https://discourse.julialang.org/u/raman_kumar)\
**Post date:** [January 5, 2025, 3:00pm UTC](https://discourse.julialang.org/t/how-to-run-risc-v-julia-on-other-architectures/124399/5 "2025-01-05T15:00:48Z")

</div>

So you mean that i should choose : 1. qemu-base ?
