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

Translation from JuvixReg to Cairo ASM #2562

Closed
lukaszcz opened this issue Dec 10, 2023 · 0 comments · Fixed by #2671
Closed

Translation from JuvixReg to Cairo ASM #2562

lukaszcz opened this issue Dec 10, 2023 · 0 comments · Fixed by #2671
Assignees
Milestone

Comments

@lukaszcz
Copy link
Collaborator

lukaszcz commented Dec 10, 2023

@lukaszcz lukaszcz added this to the 0.6.0 milestone Dec 10, 2023
@lukaszcz lukaszcz self-assigned this Feb 14, 2024
This was referenced Feb 16, 2024
lukaszcz added a commit that referenced this issue Feb 27, 2024
* Closes #2571
* It is reasonable to finish this PR before tackling #2562, because the
field element type is the primary data type in Cairo.
* Depends on #2653

Checklist
---------

- [x] Add field type and operations to intermediate representations
(JuvixCore, JuvixTree, JuvixAsm, JuvixReg).
- [x] Add CLI option to choose field size.
- [x] Add frontend field builtins.
- [x] Automatic conversion of integer literals to field elements.
- [x] Juvix standard library support for fields.
- [x] Check if field size matches when loading a stored module.
- [x] Update the Cairo Assembly (CASM) interpreter to use the field type
instead of integer type.
- [x] Add field type to VampIR backend.
- [x] Tests

---------

Co-authored-by: Jan Mas Rovira <[email protected]>
@lukaszcz lukaszcz mentioned this issue Mar 4, 2024
6 tasks
@jonaprieto jonaprieto modified the milestones: 0.6.0, 0.6.1 Mar 9, 2024
lukaszcz added a commit that referenced this issue Mar 20, 2024
* Closes #2562 

Checklist
---------

- [x] Translation from JuvixReg to CASM
- [x] CASM runtime
- [x] Juvix to CASM pipeline: combine the right transformations and
check prerequisites
- [x] CLI commands: add target `casm` to the `compile` commands
- [x] Tests:
   - [x] Test the translation from JuvixReg to CASM
   - [x] Test the entire pipeline from Juvix to CASM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants