3

L4Re is a microkernel based system written in C++. It comes with a couple of packages mainly written in C++, C, and it seems like there is native support for Fortran, OCaml and Perl.

There is also an hello world package written in plain C, compiled and linked normally, but with the l4re toolchain.

Is it possible to build a hello world Rust program against that L4Re toolchain in order to write L4Re packages in Rust?

I am aware of rust-cross, but there is probably no suitable triple available for my situation and I need to specify my target manually. Any ideas which values should be used in my case?

Shepmaster
  • 388,571
  • 95
  • 1,107
  • 1,366
michas
  • 25,361
  • 15
  • 76
  • 121
  • What is the architecture that the kernel runs on / you are targeting? What calling convention(s) do L4Re applications use? – Shepmaster Jun 06 '16 at 17:52
  • Everything is amd64 in my case. I'm not sure about the calling conventions. There is a working Makefile framework for building around, but I don't completely understand how it works. Probably the main point is, that it provides its own modified [uclibc](https://svn.l4re.org/repos/oc/l4re/trunk/l4/pkg/l4re-core/uclibc/), which I need to compile against. – michas Jun 06 '16 at 18:02
  • From a deleted answer: The paper ["Rust On L4Re — Integrating A Modern Systems Language Into A Microkernel Userland"](https://www.crustulus.de/downloads/Rust%20On%20L4Re.pdf) may provide some relevant information about the progress of support for Rust on L4Re, along with guidance on dealing with toolchain and library issues. – michas Feb 10 '19 at 18:39

0 Answers0