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.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。