Skip to content

Wasm on Bare Metal ABIs (was: Wasm Cards) #1378

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
SoniEx2 opened this issue Sep 12, 2020 · 2 comments
Open

Wasm on Bare Metal ABIs (was: Wasm Cards) #1378

SoniEx2 opened this issue Sep 12, 2020 · 2 comments

Comments

@SoniEx2
Copy link

SoniEx2 commented Sep 12, 2020

We have Java Cards but what if we had Wasm Cards as well? unfortunately it would be a lot easier with a 16-bit format instead of the 32-bit and 64-bit formats we have.

There should be a 16-bit wasm format, as well as wasm formats for "directly on the metal" where the whole address space is exposed, there's no MMU, there are no bound checks on memory, and wasm stack is shared with LLVM stack. Additionally, memory layout must be specified at compilation time.

This would be useful for:

It'll need to handle bank switching and ROM somehow.

@SoniEx2 SoniEx2 changed the title Wasm Cards Wasm on Bare Metal ABI (was: Wasm Cards) Oct 10, 2020
@SoniEx2 SoniEx2 changed the title Wasm on Bare Metal ABI (was: Wasm Cards) Wasm on Bare Metal ABIs (was: Wasm Cards) Oct 10, 2020
@vshymanskyy
Copy link

While working on Wasm3, we were able to run WASM on systems with 16KB RAM and 128KB Flash memory. And even on ATmega1284.
Personally, I wouldn't vote for introducing any of the suggested changes, but there are some other useful ideas, already discussed in other tickets/proposals. Let me collect them and post here.

@vshymanskyy
Copy link

Things to read (at least):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants