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

Replace COMPILE in Core with COMPLIT #417

Closed
TG9541 opened this issue Apr 5, 2021 · 1 comment
Closed

Replace COMPILE in Core with COMPLIT #417

TG9541 opened this issue Apr 5, 2021 · 1 comment
Assignees

Comments

@TG9541
Copy link
Owner

TG9541 commented Apr 5, 2021

After the introduction of POSTPONE in #414 the usage of COMPILE can be phased out.

Currently there are sequences in the core like

  • <CALL COMPILE><CALL target> or
  • <CALL COMPILE><CALLR reltarget>

The task of COMPILE is to decode the CALL or CALLR assembler instruction, find target and use CALL, to compile a <CALL target> or <CALLR reltarget> at the current CP. The COMPILE method normally needs 5 or 6 bytes, and 4 bytes in rare cases.

These can be easily replaced with <CALL COMPLIT><target> or <CALLR COMPLIT><target> which normally requires 5 bytes or 4 bytes in rare cases.

@TG9541
Copy link
Owner Author

TG9541 commented Apr 5, 2021

It turned out that in the core <CALLR COMPLIT><target> is not so rare.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant