Skip to content

Optimize crt0#792

Merged
mateoconlechuga merged 5 commits intomasterfrom
opt_crt0
Apr 26, 2026
Merged

Optimize crt0#792
mateoconlechuga merged 5 commits intomasterfrom
opt_crt0

Conversation

@ZERICO2005
Copy link
Copy Markdown
Contributor

@ZERICO2005 ZERICO2005 commented Apr 20, 2026

Size optimizes the timer initialization/clearing code, and optimizes the atexit function loop.

Also formatted unconditional branches.

One important change was that I swapped the order of when the atexit/on_exit function and free get called. So now free is called after the atexit/on_exit function (which probably is more technically correct anyways?)

Comment thread src/crt/crt0.S
Comment thread src/crt/crt0.S
@ZERICO2005 ZERICO2005 changed the title Opt crt0 Optimize crt0 Apr 25, 2026
@ZERICO2005 ZERICO2005 marked this pull request as ready for review April 25, 2026 18:10
@mateoconlechuga mateoconlechuga merged commit 993b3c4 into master Apr 26, 2026
9 checks passed
@mateoconlechuga mateoconlechuga deleted the opt_crt0 branch April 26, 2026 04:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants