Skip to content

Make naming of stack locations configurable#386

Merged
mkannwischer merged 1 commit into
mainfrom
stack-spill
Jan 12, 2026
Merged

Make naming of stack locations configurable#386
mkannwischer merged 1 commit into
mainfrom
stack-spill

Conversation

@willieyz
Copy link
Copy Markdown
Collaborator

@willieyz willieyz commented Jan 5, 2026

Copy link
Copy Markdown
Collaborator

@mkannwischer mkannwischer left a comment

Choose a reason for hiding this comment

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

Thanks @willieyz. Overall this functions well.
A couple of comments below.

Comment thread slothy/cli/__init__.py Outdated
Comment thread slothy/core/config.py Outdated
Comment thread slothy/core/config.py Outdated
Comment thread slothy/core/core.py Outdated
Comment thread slothy/core/core.py Outdated
@willieyz willieyz force-pushed the stack-spill branch 3 times, most recently from 43cd8f4 to 397bcf8 Compare January 9, 2026 12:09
This commit introduces configurable stack naming conventions to support
different contexts when using spill optimization.

This enables SLOTHY to generate assembly with custom stack location
naming conventions when using `-c constraints.allow_spills=True`,
allowing integration with projects that have specific naming requirements
(e.g., "MLK_STACK_LOC_", "CUSTOM_STACK_", etc.).

Example usage:
  slothy-cli
  -c constraints.allow_spills=True
  -c constraints.spill_stack_loc_prefix=MLK_STACK_LOC
  input.s

Signed-off-by: willieyz <willie.zhao@chelpis.com>
@willieyz willieyz marked this pull request as ready for review January 12, 2026 02:54
Copy link
Copy Markdown
Collaborator

@mkannwischer mkannwischer left a comment

Choose a reason for hiding this comment

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

Thanks @willieyz. LGTM.

@mkannwischer mkannwischer merged commit 1204b76 into main Jan 12, 2026
38 checks passed
@mkannwischer mkannwischer deleted the stack-spill branch January 12, 2026 03:43
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.

Make naming of stack locations configurable

2 participants