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

Suggestion: have the CCP zero out the bss for transient commands #136

Open
ZornsLemma opened this issue Apr 28, 2024 · 0 comments
Open

Suggestion: have the CCP zero out the bss for transient commands #136

ZornsLemma opened this issue Apr 28, 2024 · 0 comments

Comments

@ZornsLemma
Copy link

(I'm interested in CP/M-65 but haven't actually used it, so apologies if this suggestion is inappropriate.)

The CCP knows where a transient command's relocation data starts, and that is the same place its bss starts. COMHDR_TPA_USAGE effectively tells it how large the bss is. It could therefore zero out this region after relocation and before executing the program, which would allow programs to assume their bss is zero-initialised on startup. As I understand it, currently a program has to zero out its own bss if it cares about it actually being zero-initialised.

I appreciate even if the above is reasonable that this is an API change, and programs which relied on this would not work correctly on older versions of CP/M-65.

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

No branches or pull requests

1 participant