ST意法半导体
直播中

李国东

8年用户 191经验值
私信 关注
[问答]

STVD COMSIC编译器无法调试double/float数据类型

大家好,


我在使用COSMIC C编译器在STVD中使用double或float数据类型时遇到了一些问题。
我能够声明这些数据类型但是当我开始调试并想要观察变量时,STVD显示了奇怪的值。例如,简单划分5.0 / 3.0在1中解决,... E-37就像0。

使用float数据类型具有相同的效果。

我正在使用断点和“快速观察”命令。

丹尼斯

以上来自于谷歌翻译


以下为原文




Hello all,


I`m having some issues using the double or float datatype in STVD with the COSMIC C compiler.
I am able to declare those data types but when i start debugging and would like to watch the varibles, STVD shows weird values. for example the simple division  5.0 / 3.0 resolutes in 1,...E-37 which is something like 0.

Using float data type has the same effect.

I was using break points and the command 'quick watch'.

Dennis

回帖(6)

李咏华

2019-1-4 16:04:46
你好,请试试这个(附图)。和显示项目:标准(右键单击WATCH中的显示项目)。谢谢;此致,Balmukund Prasad

以上来自于谷歌翻译


以下为原文







Hello ,

Please try this(Image atached).
and Display item :Standard(After right click on the Display item in WATCH).


Thanks& Regards,
Balmukund Prasad
举报

李国东

2019-1-4 16:12:46
嘿,
 
 
 谢谢。是的,这不起作用
举报

谭齐慧

2019-1-4 16:27:19
如果您发布一小段代码,我可以看看另一个调试器:这将允许确定它是代码(或链接器文件/链接库),编译器还是调试器的问题。
 
 问候,
 
 卢卡(宇宙)

以上来自于谷歌翻译


以下为原文







if you post a small bit of code I can take a look with another debugger: that will allow to determine if it's an issue with the code (or the linker file / linked libraries), the compiler, or the debugger.

Regards,

Luca (Cosmic)
举报

李国东

2019-1-4 16:34:00
卢卡你好,
 
 
 甚至没有简单的程序工作。例如:
 
 主要(){
 double test = 0.0;
 test = 5/3;
 }
 
 并且观察这个变量测试显示相同...
 
 谢谢。

以上来自于谷歌翻译


以下为原文





Hello Luca,


not even simple programs work. For example:

main(){
double test = 0.0;
test = 5 / 3;
}

And watching this variable test shows the same ...

Thanks.
举报

更多回帖

发帖
×
20
完善资料,
赚取积分