RT-Thread / RT-Thread/rt-thread
[Feature] 提供跳过浮点的rt_vsscanf版本?
Open
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 12.2k
- Forks
- 5.4k
- Avg merge
- 4d 12h
- Merged PRs (30d)
- 40
Description
Describe problem solved by the proposed feature
https://github.com/RT-Thread/rt-thread/pull/9863
这个提交引入了strtod,导致了需要引入一系列浮点库,会增大亿点空间(在代码密度比较低的riscv+公版gcc上大概30k+)。
@mysterywolf
Describe your preferred solution
No response
Describe possible alternatives
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing PR #9863 and the current rt_vsscanf implementation, especially its use of strtod. Determine how floating-point support is introduced and what a no-floating-point variant would need to preserve. Done should include an agreed API and reduced floating-point library impact, but the issue does not specify files, tests, or acceptance criteria.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- embedded-iot, operating-systems
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100