为什么不定点列入C99类型? [英] Why aren't fixed-point types included in C99?

查看:137
本文介绍了为什么不定点列入C99类型?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

幸运的是,复杂类型修饰符被引入C99标准。我不明白的是为什么我们决定省略定点运算的支持(具体支持小数类型,如{1.15}签署或0.32 {}无符号),这些类型都是很基本DSP编程?

Thankfully, the complex type modifier was introduced into C99 standard. What I don't understand is why it was decided to omit support for fixed point arithmetic (specifically, support fractional types like 1.15 {signed} or 0.32 {unsigned}) where these types are so fundamental to DSP programming?

GCC是否通过扩展支持这些?

Does GCC support these through an extension?

推荐答案

它已经讨论/建议(例如,在的N938 N953 ),但这些文件只提出它作为扩展,而不是增加的主要标准。这些似乎已经导致其列入 N1169 ,这是一个TR的18037草案(扩展支持嵌入式处理器),但不被视为完成(和草案似乎并不已在很长一段时间被更新)。

It's been discussed/proposed (e.g., in N938, N953) but those papers have only proposed it as extensions, not additions to the main standard. Those seem to have led to its inclusion in N1169, which is a draft of TR 18037 ("Extensions to support embedded processors"), but that isn't considered complete (and the draft doesn't seem to have been updated in quite a while).

我的猜测(尽管这只是一个猜测)是它的工作可能得到下降(至少暂时)专心整理C11。无论它现在的工作将继续将可能取决于是否还有周围的人谁还是很在乎的人。编写和提交基于这些较早的,涵盖更详细的文件,提供了更多的支持证据,等等,可能有助于重新取回运动(虽然我显然不能保证任何东西)。

My guess (though it's only a guess) is that work on it probably got dropped (at least temporarily) to concentrate on finishing C11. Whether work on it will resume now will probably depend on whether there are still people around who still care. Writing and submitting a paper based on those earlier ones that covers more detail, provides more supporting evidence, etc., might help to get it back in motion again (though I obviously can't guarantee anything).

这篇关于为什么不定点列入C99类型?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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