This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] CLA 赋值产生的值很大

Guru**** 2487425 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/969560/cla-assignment-yields-large-number

您好、Lori、

我正在对数组进行分配。 为什么我得到这个大数字?

谢谢 Vadim

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    Vadim、

    我看到 xn 显示在表达式窗口中、显示为 float。   

    但是从反汇编中、它似乎被定义为 int32_t (编译器使用从 i32到地址0xa018处浮点指令的转换)。  该指令的第二个操作数是否对应于 xn 的存储器位置?  

    xn 是如何定义和初始化的?  即、它是定义为 float 还是 int32_t?   

    -洛里