最小/快速实现(S)printf进行嵌入式 [英] Minimal / fast implementation of (s)printf for embedded

查看:180
本文介绍了最小/快速实现(S)printf进行嵌入式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我工作的一个嵌入式DSP在速度是至关重要的,而内存是非常短的。

I'm working on an embedded DSP where speed is crucial, and memory is very short.

目前,sprintf的是我的code最大(迄今为止)的功能,我用它来格式化一些简单的文字:%D,%E,%F,%S ,只能自认倒霉precision或异国情调的操作。

At the moment, sprintf is the biggest (by far) function in my code, and I use it to format some simple text : %d, %e, %f, %s, nothing with precision or exotic manipulations.

有一个现有的重新实施(S)的printf的有限子集,这将是更适合我的使用情况?

Is there an existing re-implementation of a limited subset of (s)printf that would be more suitable for my usage?

无precision符或一些不起眼的功能(零填充比如)一个版本将是完美的。

A version without precision specifiers or some obscure features (zero-padding for instance) would be perfect.

我没有找到在谷歌相关的任何东西,我可能也没有选择合适的措辞。

I didn't find anything relevant on Google, I might have failed to choose the appropriate wording.

推荐答案

看到这两个:

  • ee_printf
  • tiny printf

这篇关于最小/快速实现(S)printf进行嵌入式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆