Skip to content

Comptime evaluation of some assembly blocks#354

Draft
mbenke wants to merge 5 commits intocomptime-checkfrom
comptime-asm
Draft

Comptime evaluation of some assembly blocks#354
mbenke wants to merge 5 commits intocomptime-checkfrom
comptime-asm

Conversation

@mbenke
Copy link
Copy Markdown
Collaborator

@mbenke mbenke commented Apr 16, 2026

This PR adds the ability to interpret assembly blocks when evaluating comptime expressions/

Blocks involving memory access are evaluated only when in “comptime mode” which is triggered by let x : comptime ...

Blocks containing only pure operations (arithmetic) are evaluated in “folding mode” (needed since even addition is defined via assembly).

Blocks containing runtime-only operations (such as sload) are not interpreted.

@mbenke mbenke changed the title Cojmptime evaluation of some assembly blocks Comptime evaluation of some assembly blocks Apr 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant