ARM assembly, multiplying without MUL instruction -


I researched this large scale, and I have not received any answers. Without using multiplication instructions in ARM assembly language, I have to multiply * 17. I understand that you can use RSB, but how to use values ​​or how to use the LSL # part is misleading. Any help would be great!

I agree with comments, but only a quick tip, usually compiler

So you can use only one arm - * - * - gcc toolchain to get this kind of answer.

  $ cat m17.c int f (int i) {return i * 17; } $ Arm-linux-gnueabihf-gcc -O3 -S m17.c $ cat m17.s & lt; Left & gt; F: R, R, R, LSL # 4 BX LR and Left; Skip & gt;   

And a horrible joke: Use the tool, Luke!

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -