RT-Thread / RT-Thread/rt-thread

[Feature] 提供跳过浮点的rt_vsscanf版本?

Open
#10,080 1 comment 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.