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.

[参考译文] CCS/MSP430G2553:CCStudio 6.2 长int问题

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

https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/596999/ccs-msp430g2553-ccstudio-6-2-long-int-issue

部件号:MSP430G2553
主题中讨论的其他部件:CCStudio

工具/软件:Code Composer Studio

我正在使用CCStudio 6.2 64位。 程序就像这样

长int d2;

INT D1 =-961;

d2 = 987 * d1;

显示D2的正确结果是- 94.8507万。( 11.1111万111100011000011011100101 )11.11万)</s>1.1万 1.1011万10.0101万

                          但它显示 -3.1003万(11111111111111000011011100101)   。11.1111万。</s>11.1111万 11万11.0111万0.0101万

既然D2已经被宣布为很长的时间,这里有什么问题?