Skip to content

Move TM_WEAK to front and use in header#92

Open
jonnor wants to merge 2 commits into
sipeed:mainfrom
jonnor:weak-static
Open

Move TM_WEAK to front and use in header#92
jonnor wants to merge 2 commits into
sipeed:mainfrom
jonnor:weak-static

Conversation

@jonnor

@jonnor jonnor commented Apr 19, 2026

Copy link
Copy Markdown
Contributor

This makes it possible to define TM_WEAK as static That is desirable when building TinyMaix multiple times with different configurations into the same program - for example changing TM_MLD. In this case it is critical that each instance gets its own functions, and do not refer to eachother. Which means using static instead of attribute weak. With these changes that can be done in tm_port.h

jonnor added 2 commits April 19, 2026 21:39
This makes it possible to define TM_WEAK as static
That is desirable when building TinyMaix multiple times with different
configurations into the same program - for example changing TM_MLD.
In this case it is critical that each instance gets its own functions,
and do not refer to eachother. Which means using static instead of attribute weak
Might not be used / implemented
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