We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi all,
Some of the arm instructions like STMIACS LDRBCS are reported as error by ARMGCC. What could be the reason ?
This a gah! flip! problem. ARM used to recommend STMCSIA LDRCSB but changed to saying the condition code should be at the end like you put them. gas uses the old sytntax
Hi daith,
Thanks for the response.
I thought long back i solved this issue by replacing in the instruction STMCSIA to STMCS.
Seems like both does same functionality. Its like, by default it increments after. Correct me if I am wrong.
You could write a macro, which translates the instruction.
Yes ldm and stm are equivalent to ldmia and stmia.
Sorry I need a memory overhaul. Try the gas directive
.syntax unified
at the beginning of your assembler file. This should upgrade gas to be much more compatible with ARM so one uses addseq and ldmcsfd instead of addeqs and ldmcsfd.
Oh Nice.. That's great info daith.. Thanks for your concerned brief reply..
Regards,
Techguyz