我正在使用 libmpeg2 在我的袖珍电脑项目中显示视频。该库的最新版本具有 ARM 处理器的加速功能,一些函数在 arm 程序集中重写(在单独的文件 motion_comp_arm_s.S 中)。问题是来自 Visual Studio 9 的 armasm 无法编译它,产生了很多错误。我的问题是,哪个 arm 汇编编译器适合这样的代码?
.text
@ ----------------------------------------------------------------
.align
.global MC_put_o_16_arm
MC_put_o_16_arm:
@@ void func(uint8_t * dest, const uint8_t * ref, int stride, int height)
pld [r1]
stmfd sp!, {r4-r11, lr} @ R14 is also called LR
and r4, r1, #3
adr r5, MC_put_o_16_arm_align_jt
add r5, r5, r4, lsl #2
ldr pc, [r5]
...
感谢您的任何帮助