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.

C6000 动态链接j技术,哪有相关详细资料,有没有历程可以借鉴的?



两个问题,第二个问题是  :C语言嵌套汇编,C6748嵌套汇编时,写法是这样写吗?  asm{   }

printf("\r\nExecute Test\r\n");
   printf("------------\r\n\r\n");
   
  在此处添加 汇编的一个加法计算  
   asm(
MVK.S1     0x0002,A3
STW.D2T1   A3,*+SP[4]
NOP        2
MVK.S1     0x0005,A3
STW.D2T1   A3,*+SP[5]
NOP        2

LDW.D2T2   *+SP[5],B5
LDW.D2T2   *+SP[4],B4
NOP        4
ADD.L2     B5,B4,B4
LDW.D2T2   B4,*+SP[7]
NOP        2
);

   // flash leds for a few seconds.
   for (i = 0; i < 3; i++)
   {
    GPIO_setOutput(3, 7, 0);

  • 动态链接:

    http://processors.wiki.ti.com/index.php/C6000_Dynamic_Linking?keyMatch=dynamic%20link&tisearch=Search-EN

    嵌套汇编:应该一句一句的写,我没见过一个asm后加一大段的。也没多大必要分配功能单元数据路径之类的。