Skip to content

econd parameter lut specialization#384

Merged
tomeichlersmith merged 7 commits intomainfrom
266-econ-specific-compiler
Apr 8, 2026
Merged

econd parameter lut specialization#384
tomeichlersmith merged 7 commits intomainfrom
266-econ-specific-compiler

Conversation

@tomeichlersmith
Copy link
Copy Markdown
Member

This resolves #266 by separating out the heavy/large ZS pages so we don't carry them around when doing normal interactions.

  • drop tracking of zero-bit registers
  • move LUT including ZS parameters to econd::with_zs and have the default LUT econd not include the ZS

Comment on lines -96 to +97
# if no bits used all bytes get n_bits=0
return [f"RegisterLocation(0x{address + i:04x}, 0, 0)" for i in range(size_byte)]
# if no bits
return []
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@cmantill I'm curious on why you included these zero-bit register locations in the original mapping. Removing them allows the tests to pass with the only change to the tests being the base address -> number of bytes mapping for the test parameter set.

this is helping bloat the maps, shrinking map size could help with
speed, now failing on counting number of bytes per base address
with the zero-registers being skipped, the counts have changed
there are so many ZS parameters that carrying around these maps (and the
large set of values if dump/load "all" parameters is not needed) we can
opt into include them again by undoing this change or (more likely)
compilng the ZS parameters into registers offline and then loading those
registers separately from other parameters
@tomeichlersmith tomeichlersmith force-pushed the 266-econ-specific-compiler branch from 686ed59 to 02c864e Compare April 8, 2026 17:18
@tomeichlersmith tomeichlersmith marked this pull request as ready for review April 8, 2026 17:19
@tomeichlersmith tomeichlersmith merged commit f71a60f into main Apr 8, 2026
3 checks passed
@tomeichlersmith tomeichlersmith deleted the 266-econ-specific-compiler branch April 8, 2026 17:29
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.

cleanup/refactor Compiler or its usage within ECON

1 participant