Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 C 函数,我想从传递给汇编程序部分的指针数组中加载数据。这个怎么做?
float *pointerToBuffer asm volatile ( "vld1.32 {q0},[%[buf]] \n\t" : [buf]"+r"(ponterToBuffer) );
如果变量是 pointerToPointerToBuffer 怎么办
如果语法允许,我建议再使用一对括号:
asm volatile ( "vld1.32 {q0},[[%[buf]]] \n\t" : [buf]"+r"(ponterToBuffer) );
如果不:
asm volatile ( "ldr r1,[%[pointerToBuffer]] \n\t" "vld1.32 {q0},[r1] \n\t" );