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

ECAL opcode support #6947

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

ECAL opcode support #6947

wants to merge 4 commits into from

Conversation

zees-dev
Copy link
Contributor

@zees-dev zees-dev commented Feb 21, 2025

Description

The ECAL opcode is supported in fuel-vm to extend the capabilities of the VM.
Users can implement rust code to interop with the VM using the ECAL opcode.
This PR introduces support for the opcode in the sway repo - such that sway assembly can be successfully compiled with the ECAL opcode.

Examples of how to utilize the ECAL opcode can be seen here: https://github.com/FuelLabs/fuel-vm/blob/9478991db1ea8799fab47ebe1c195946a2698a7f/fuel-vm/examples/external.rs#L51

Checklist

  • I have linked to any relevant issues.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have updated the documentation where relevant (API docs, the reference, and the Sway book).
  • I have added tests that prove my fix is effective or that my feature works.
  • I have added (or requested a maintainer to add) the necessary Breaking* or New Feature labels where relevant.
  • I have done my best to ensure that my PR adheres to the Fuel Labs Code Review Standards.
  • I have requested a review from the relevant team or maintainers.

@zees-dev zees-dev requested a review from a team as a code owner February 21, 2025 05:43
@zees-dev zees-dev requested a review from a team February 21, 2025 05:43
@zees-dev zees-dev added compiler General compiler. Should eventually become more specific as the issue is triaged enhancement New feature or request labels Feb 21, 2025
Copy link

codspeed-hq bot commented Feb 21, 2025

CodSpeed Performance Report

Merging #6947 will not alter performance

Comparing zees-dev/ecall-opcode (6a01732) with master (b07d0ca)

Summary

✅ 22 untouched benchmarks

Copy link
Member

@sdankel sdankel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler General compiler. Should eventually become more specific as the issue is triaged enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for ECAL instruction
3 participants