yurapyon / mini

16bit Forth wahoo
MIT License
0 stars 0 forks source link

Sort out dictionary alignment #24

Closed yurapyon closed 3 months ago

yurapyon commented 3 months ago

this was a PR working on the base file/std lib but has transitioned to a PR about fixing dictionary definition alignment

Changes in this PR:

yurapyon commented 3 months ago

definitions need to be aligned somehow or dictionaries should just not care TBD but this PR will fix that

yurapyon commented 3 months ago

I think the idea is to go more strict on alignment reasoning: we will never be able to get away from enforcing alignment for builtin memory i.e. 'here' 'program_counter' or the stacks

so rather than have to 'generally dont care about alignment but sometimes you have to care', thus weakening the utility of ! and @, its probably better to just be more strict about things 👍

weird alignment behavior will be offloaded onto the terminator, as to keep everything else about definitions as simple as possible