-
Notifications
You must be signed in to change notification settings - Fork 174
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
v00x vs v003 firmware size difference #543
Comments
The likes of the map and list files should clarify exactly where each byte of each linked image is coming from and eliminate any speculation. |
ok i tried making it link against the libgcc.a in the repo and the binaries match except an extra instruction needed to setup the stack pointer due to bigger sram. |
Should this be closed? |
No, I think you need to add |
I think we want to only force that for the v003. We could consider getting other platform-specific ones, but it would theoretically be less efficient or worse to use the v003 one on any of the others, since the others have a multiply instruction. |
For example:
V002 = 6816 B
v003 = 6756 B
I believe most of it is caused by v003 using libgcc.a from the repo and v00x using it from the system.
Relevant line in ch32fun.mk is
LDFLAGS+=-L$(CH32FUN)/../misc -lgcc
in the v003 block. I haven't tested adding it to v00x yet.The text was updated successfully, but these errors were encountered: