Skip to content

Commit

Permalink
bootstrap only expects nominal functions with simple calling conventi…
Browse files Browse the repository at this point in the history
…ons and never closures
  • Loading branch information
andrew-johnson-4 committed Jan 8, 2024
1 parent 8dfb006 commit 850ac0c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions stdlib/helpers.lm
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@
# specialization to use more efficient representations is available in the optimizing compiler
# which is what we are bootstrapping

# BOOTSTRAP FUNCTIONS
# the bootstrap compiler does not internally use closures
# the bootstrap compiler only refers to functions through labels, never pointers
# bootstrap functions have a simple calling convention that expects nonvolatile registers to be preserved

# bootstrap is inefficient with calling conventions
::callee-save-registers := (
\t push %r12 \n
Expand Down

0 comments on commit 850ac0c

Please sign in to comment.