Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support ROM/RAM selection at compile-time #283

Closed
tkers opened this issue Jun 21, 2018 · 3 comments
Closed

Support ROM/RAM selection at compile-time #283

tkers opened this issue Jun 21, 2018 · 3 comments

Comments

@tkers
Copy link
Member

tkers commented Jun 21, 2018

As described in https://www.taygeta.com/forth/dpanse.htm#E.5, we should add the words RAM and ROM to select the memory that words should be referencing.

Compile-time:

Word Memory
, ROM
c, ROM
here ROM/RAM
unused ROM/RAM
allot ROM/RAM
align ROM/RAM
aligned ROM/RAM
create ROM/RAM
variable ROM/RAM

Run-time:

Word Memory
, RAM
c, RAM
here RAM
unused RAM
allot RAM
align RAM
aligned RAM
create unavailable
variable unavailable
@davazp
Copy link
Member

davazp commented Jun 21, 2018

Why , and c, shouldn't be available for RAM as well? An early limitation that we can improve later or something intrinsic?

@tkers
Copy link
Member Author

tkers commented Jun 21, 2018

The most basic support would mean that RAM is uninitialised. So just like ! and c!, emitting data would only be supported for ROM (the other words only reference/allocate space).

I created #284 to discuss the possibility of initialising RAM.

@tkers
Copy link
Member Author

tkers commented Jun 23, 2018

Implemented in f270e7e

And updated to make VARIABLE possible in both locations: c9c5313

@tkers tkers closed this as completed Jun 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants