Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
31 user(s) are online (20 user(s) are browsing Forums)

Members: 1
Guests: 30

NinjaCyborg, more...

Support us!

Headlines






OS4 shared object format: like Linux?
Just popping in
Joined:
2007/4/15 2:51
From Waterville, Minnesota, USA
Posts: 176
Hello, I haven't posted here for a while.

I'm kicking around the idea of trying to get Rust to cross compile to OS 4 and then see about getting Wasmer to run on it. One dependency that seems to be hard to avoid is that the WASI ABI for Wasmer uses shared objects in a POSIX-style format. If there is a query capable symbol exporter for an OS 4 shared library, that might be another option.

Another hard-to-avoid dependency is that the Wasmer sandbox environment is strictly little-endian. This means that anything accessible outside of the sandbox will need to be endian swapped to interface to the OS.

That said, I haven't learned to program in Rust yet so don't get your hopes up of having a glut of software written for Wasmer at this time.

   Report Go to top

Re: OS4 shared object format: like Linux?
Home away from home
Joined:
2006/11/20 16:26
From Norway
Posts: 2886
@Samurai_Crow

Rust is written in Rust, so the first step will be to make Rust cross compiler, so that you can build rust for AmigaOS using Linux.

_________________
(NutsAboutAmiga)

Basilisk II for AmigaOS4
AmigaInputAnywhere
Excalibur
and other tools and apps.
   Report Go to top

Re: OS4 shared object format: like Linux?
Home away from home
Joined:
2006/11/20 16:26
From Norway
Posts: 2886
@Samurai_Crow

https://doc.rust-lang.org/nightly/rustc/platform-support.html

So Rust does support “powerpc-unknown-linux-gnu”, (PowerPC Linux (kernel 2.6.32, glibc 2.11))

There is dependencies on glibc, we currently do not have glibc, we have newlib and clib, so that is big dependency that might need to be ported. (if clib / newlib can not be used.)

_________________
(NutsAboutAmiga)

Basilisk II for AmigaOS4
AmigaInputAnywhere
Excalibur
and other tools and apps.
   Report Go to top

Re: OS4 shared object format: like Linux?
Just popping in
Joined:
2007/4/15 2:51
From Waterville, Minnesota, USA
Posts: 176
Rust uses LLVM as a backend and optimizer. It doesn't specifically use GLibC unless you are using the Linux backend. It does need to be able to compile LLVM in C++20 or so.

   Report Go to top

Re: OS4 shared object format: like Linux?
Home away from home
Joined:
2006/11/20 16:26
From Norway
Posts: 2886
@Samurai_Crow

"shared object format", Yes its standard ELF format, used by many different operating systems.

I was suggested it can be used as plugins, so I guess dynlink at runtime also works, not just when your start program.

_________________
(NutsAboutAmiga)

Basilisk II for AmigaOS4
AmigaInputAnywhere
Excalibur
and other tools and apps.
   Report Go to top

Re: OS4 shared object format: like Linux?
Home away from home
Joined:
2006/11/20 16:26
From Norway
Posts: 2886
@Samurai_Crow

I’m pretty sure LLVM and C++20 is not supported, I do remember they where trying to update it (newlib/clib) to C++11 standards, but I guess C++20 that’s most stuff in glibc .

_________________
(NutsAboutAmiga)

Basilisk II for AmigaOS4
AmigaInputAnywhere
Excalibur
and other tools and apps.
   Report Go to top

Re: OS4 shared object format: like Linux?
Just popping in
Joined:
2007/4/15 2:51
From Waterville, Minnesota, USA
Posts: 176
GCC 10 and LibStdC++ can do it if it's up to date. The LLVM equivalent to LibStdC++ is LibC++ and it's as much of a pain to port as LibStdC++.

   Report Go to top

Re: OS4 shared object format: like Linux?
Home away from home
Joined:
2006/11/26 21:45
From a dying planet
Posts: 3946
@Samurai_Crow

The latest gcc we have available (as beta) is 8.4.0 (https://dl.bintray.com/sba1/adtools-na ... ls-os4-8-20200408-704.lha)

But i don't know if anyone is using that already (I didn't even know that there was a new version, i still use 8.3.0)

_________________
People are dying.
Entire ecosystems are collapsing.
We are in the beginning of a mass extinction.
And all you can talk about is money and fairytales of eternal economic growth.
How dare you!
– Greta Thunberg
   Report Go to top

Re: OS4 shared object format: like Linux?
Just popping in
Joined:
2007/4/15 2:51
From Waterville, Minnesota, USA
Posts: 176
Thanks Raziel. I would have had to figure out a way to split endians along the lines of a sandbox if I tried to do it on AmigaOS 4.1FE anyway.

   Report Go to top





[Advanced Search]



Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project