Port to baremetal ARM (32bit) no OS, just raw GCC?

29 views
Skip to first unread message

awyy

unread,
Mar 1, 2018, 7:55:31 PM3/1/18
to Avian
I see that Avian supports Linux on ARM.  How much would be involved to port to an embedded project with no Linux OS, just baremetal ARM GCC?  I assume we'd need to implement filesystem support.  What about threading?  Is OS threading used?

I assume we'd start with the interpreter and look at AOT/JIT later.

Cheers, awyy

Joel Dice .

unread,
Mar 2, 2018, 6:52:55 PM3/2/18
to Avian
Hi,

Here's the API representing the functionality the VM expects the OS to
provide: https://github.com/ReadyTalk/avian/tree/master/include/avian/system

In addition, the class library has its own set of dependencies for
e.g. allocation, filesystem access, networking, etc..

The way I'd approach a port would be to stub everything out so it
compiles and then iterating on a representative test case, replacing
the stubs with realistic implementations as you run into issues. And
yes, the OS is expected to provide threading.

Sounds like a ton of work, though. I'd just use Linux or BSD.
> --
> You received this message because you are subscribed to the Google Groups
> "Avian" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to avian+un...@googlegroups.com.
> To post to this group, send email to av...@googlegroups.com.
> Visit this group at https://groups.google.com/group/avian.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages