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.

[参考译文] MSP430F5418A:在将 MSP430F5418A 的固件从 IAR C/C++编译器迁移到 CCS (GCC)编译器时、使用什么关键字代替"data20&quot?

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

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/1200065/msp430f5418a-what-keyword-be-used-instead-of-data20-while-migrating-the-firmware-for-msp430f5418a-from-iar-c-c-compiler-to-the-ccs-gcc-compiler

器件型号:MSP430F5418A

您好!

我们尝试使用__int20替换__data20。 但 CCS (GCC)编译器也无法识别它。

请建议是否使用任何特定机制来区分20位大指针和 GCC 编译器中使用的常规数据指针。  

谢谢。

此致、

Kannan M

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

    您正在尝试做什么?

    可以通过两种方法对0x10000以上的存储器进行寻址。 第一种方法是告诉编译器使用大内存模型与-mlarger 编译器开关。 另一个是使用__data20_xxxx 内在函数。

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

    您好 Kannan、

    CCS 中没有__data20的1:1等效值,但可以使用内存模型选项设置行为。  《MSP430编译器用户指南 》的第6.1节对此进行了详细介绍。 用户指南的第6.7.1节还提供了编译器支持的内在函数的相关信息、这些信息可能也会有所帮助。

    最棒的
    Amruta