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

Feat/null space allocation #11

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

mohammad-shahabadi
Copy link
Contributor

Feature:
Reserve the address 0 in data segment for null value. It will be used in the object registry to identify foreign objects that are null.

ATTENTION:
This pull request should only be merged after #10 since that pull request fix a specific bug related to data segement which is relevant to this feature.

Tests:
All of them are passed.

this.dataSegmentByteStr = { value: "" };
this.dataSegmentOffset = { value: 0 };
// Initial value to reserve for the null space
this.dataSegmentByteStr = { value: '\\d0\\e0\\b0\\f0' };
Copy link
Contributor

Choose a reason for hiding this comment

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

any reason for this particular value? Although it shouldn't matter anyway

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We wanted a specific value in hex for debugging purposes. We chose "DEBF" which stands for "Debugging Errors Before Failing".

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.

2 participants