0xMiden / 0xMiden/compiler

Determine ABI transformation strategy based on type signature

未關閉
#467 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
frontend ir
主要語言
Rust
星號
115
分支
84
平均合併
1 天 8 小時
30 天內合併 PR
15

描述

Currently, we must hardcode the ABI transformation strategy for procedures in the Miden stdlib and tx kernel, as we do not have type signature metadata available in those packages (or any MASM-sourced package for that matter). This is obviously brittle and unsustainable.

Once #465 is implemented (probably with the addition of #466 to define the types for the stdlib/tx kernel procedures as part of the source code), we can refactor the code that handles ABI transformation strategies to instead dispatch based entirely on the type signature/ABI of a procedure, without needing to be aware of where that procedure is defined.

This will be an essential step in making the relationship between the compiler and the various other toolchain components (particularly packages/libraries) less brittle. See also #316 for discussion on what the future of working with such packages/libraries looks like in the future once this is implemented.

貢獻指南

開啟貢獻指南

研究方向

First, understand the current ABI transformation strategy hardcoding in the Miden stdlib and tx kernel. Review issues #465 and #466 for context on type signature metadata. Then, locate the code that handles ABI transformations and refactor it to dispatch based on type signature/ABI, independent of procedure definition location. Ensure the changes align with the future package/library workflow discussed in #316.

由索引模型根據 Issue 內容生成。

評估

技術堆疊
rust
領域
compilers
Issue 類型
重構
難度
4/5
預估耗時
3-5 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。