Skip to content

Optimize zeroize bss in CRT0#716

Merged
ZERICO2005 merged 2 commits intomasterfrom
opt_crt0
Feb 27, 2026
Merged

Optimize zeroize bss in CRT0#716
ZERICO2005 merged 2 commits intomasterfrom
opt_crt0

Conversation

@ZERICO2005
Copy link
Contributor

@ZERICO2005 ZERICO2005 commented Feb 26, 2026

Makes the zeroize bss code 17 bytes smaller (33 --> 16) in src/crt/crt0.s

The first commit implements a 17 byte zeroize bss code, and the second commit uses some TI functions to get the zeriize bss code down to 16 bytes.

ti.boot.memclear uses the C calling convention. It does push/pop iy so we can assume it preserves IY. memclear(ptr, 0) is allowed.

@ZERICO2005 ZERICO2005 changed the title Opt crt0 Optimize zeroize bss in CRT0 Feb 26, 2026
@ZERICO2005 ZERICO2005 merged commit 367f757 into master Feb 27, 2026
9 checks passed
@ZERICO2005 ZERICO2005 deleted the opt_crt0 branch February 27, 2026 04:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants