Skip to content

Eliminate redundant register usage in string operations#5

Open
Mquarmoc wants to merge 5 commits into
peachey2k2:masterfrom
Mquarmoc:pr5-string-operations-fix
Open

Eliminate redundant register usage in string operations#5
Mquarmoc wants to merge 5 commits into
peachey2k2:masterfrom
Mquarmoc:pr5-string-operations-fix

Conversation

@Mquarmoc

@Mquarmoc Mquarmoc commented Aug 1, 2025

Copy link
Copy Markdown

Remove unnecessary r9 register usage
Direct memory move of
public\ string
Reduces binary size by ~20 bytes

SD.Next User added 5 commits August 1, 2025 20:26
- Eliminate unnecessary EAGAIN comparison
- Remove redundant error message
- Simplify error handling logic
- Reduces binary size by ~15 bytes
- Replace complex bit operations with simpler arithmetic
- Remove unnecessary register operations
- Reduce code complexity while maintaining functionality
- Reduces binary size by ~25 bytes
- Eliminate unnecessary mov rdi, r15 instruction
- stosq automatically uses rdi destination register
- Reduces binary size by ~8 bytes
- Remove unnecessary register pop operation
- Remove commented code
- Direct jump to cleanup routine
- Reduces binary size by ~5 bytes
- Remove unnecessary r9 register usage
- Direct memory move of public string
- Reduces binary size by ~20 bytes
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