Skip to content
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

[RFC] Table64 extension for Memory64 proposal #3774

Open
TianlongLiang opened this issue Sep 6, 2024 · 0 comments
Open

[RFC] Table64 extension for Memory64 proposal #3774

TianlongLiang opened this issue Sep 6, 2024 · 0 comments
Labels
new feature New feature request RFC

Comments

@TianlongLiang
Copy link
Contributor

Basic support for memory64 is finished(details can be found in this issue), and this issue is opened to track table64 extension support for memory64.

Overview

The core idea is straightforward, it's similar to memory64, in the table section, a table flag is to indicate whether it's the 64-bit table. If it is, the min and (optional)max entry size of that table can be i64, and the element index of that table is also i64.

Also, in all the related opcodes and element sections, the table element index will change to type i64 if it is accessing the 64-bit table.

Topics for Further Discussion

1. Should we allow the table to have an initial/maximum size greater than UINT32_MAX?

If we were to support large-size tables(number of entries > UINT32_MAX), the table instance data structure needs to be changed and therefore AOT ABI will need to change too. I also think it's relatively a corner case and it's a little impractical to have such a large table, it's not worth changing the AOT ABI for it. So my initial plan was to disallow it and report some error message in the loader.

@wenyongh wenyongh added new feature New feature request RFC labels Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature New feature request RFC
Projects
None yet
Development

No branches or pull requests

2 participants