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.

remark: zero used for undefined preprocessing identifier

remark: zero used for undefined preprocessing identifier

请问这是什么情况?

  • 这个问题解决了,是lib要安装而不是要调用的问题。

    现在有另外一个疑问,希望forrest 解答:

    就是上次遇到的问题_c_int00 undefined ,通过在build option link 入口地址处不写 code_start ,可以编译通过,没有出现错误了,但是,编译完下载到RAM中运行后,不在跳转到汇编窗口中的codestart位置处。请问

    load程序到RAM后不跳转到汇编窗口中的codestart对程序运行的正确性有没有影响?

  • 没有什么大的区别,一个进入codestart然后进入_c_int00 ,一个是直接进入_c_int00 。

    不过,我建议你还是设回到code_start,这个warning没有关系。

    DSP2833x_CodeStartBranch.asm,上面有说明:

    ;// The compiler may warn that the entry point for the project is other then

    ;//  _c_init00.  _c_init00 is the C environment setup and is run before

    ;// main() is entered. The code_start code will re-direct the execution

    ;// to _c_init00 and thus there is no worry and this warning can be ignored.

  • 关键是报错说,undefined symbols remain   _c_int00

  • 看下面,有人解释,_c_int00在库文件中定义。

    bbs.eeworld.com.cn/thread-321776-1-2.html

  • 我想请教一下,什么时候用

    1.

    MOVW DP,#VAR

    MOVL @VAR,#0X01

    2.

    MOVL XAR0,#VAR

    MOVL *XAR0,#0X01

    1和2这两种方法,分别用在什么环境下,我觉得这两种方法好像结果差不多,但是不知道在什么情况下具体用哪一种?

    谢谢!

  • 新问题开个新帖子吧,便于其他人查询。

    MOVW DP,#VAR

    MOV @VAR,#0X01

    MOVL XAR0,#VAR

    MOV *XAR0,#0X01

    达到的结果没有区别,只是寻址方式不同。具体您可以做个试验试一下。

    详细信息可以参考:

    www.ti.com/.../spru430e

  • 编译出现240处“remark: zero used for undefined preprocessing identifier”,请问是怎么解决的呢?能具体说说吗?lib.谢谢了