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: inline functions #35

Merged
merged 5 commits into from
Feb 12, 2024
Merged

Feat: inline functions #35

merged 5 commits into from
Feb 12, 2024

Conversation

deleterium
Copy link
Owner

@deleterium deleterium commented Feb 12, 2024

  • Code
  • Tests
  • Documentation

Inline functions will give the developer the power to make small programs even cheaper to be deployed. If all functions are inline and called just once, then no need to spend a "code stack page" to control the function calls addresses, the assembly will be a monolithic piece of code.

For regular programs, using the inline function can spare just two step fees (JSR and RET) and for really small functions it is still better to create a macro with arguments (substitution during code preprocessor).

Using inline can also make harder to reverse the program logic, because the functions will not be trivial to find.

@deleterium deleterium merged commit d46f302 into main Feb 12, 2024
2 checks passed
@deleterium deleterium deleted the feat/inlineFunctions branch February 12, 2024 13:14
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.

1 participant