CCSV5中,unsigned long int ;unsigned short int;unsigned int;还有带符号型变量,它们的长度是几位啊。
如果我定义了一个长整型变量,最后的值为400,000,000,会不会溢出啊
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.
CCSV5中,unsigned long int ;unsigned short int;unsigned int;还有带符号型变量,它们的长度是几位啊。
如果我定义了一个长整型变量,最后的值为400,000,000,会不会溢出啊
ZhaoF,
建议参考文档“MSP430 Optimizing C/C++ Compiler v 4.1 User's Guide” 链接为:http://www.ti.com/lit/ug/slau132g/slau132g.pdf
的P67, Table 5-1. MSP430 C/C++ COFF ABI Data Types 和 Table 5-2. MSP430 C/C++ EABI Data Types
其中有各种变量在ABI,EABI下的长度。
希望对你有帮助!O(∩_∩)O~