assemblyarmpocketpcmpeg

Unable to compile arm assembly file with armasm


I'm using libmpeg2 for showing video in my pocket pc project. Last release of this lib has acceleration for ARM processor, some of the functions are rewritten in arm assembly (in separate file motion_comp_arm_s.S). The problem is armasm from Visual Studio 9 cant compile it, producing a lot of errors. My question is, which arm assembly compiler is suitable for such code?


    .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]

...

Thank you for any help


Solution

  • That's the syntax used by the GNU assembler. The code itself should be (more or less) the same for any assembler; to make this build with the microsoft assembler, the main changes will be:

    This should fix most of the errors.