I am starting to look a bit more precisely at ARM assembler and I looked up some dumps from objdump. I saw a lot of instruction (add is not the only one) with an extra s at the end (adds, subs, ...).I looked a bit to the ARM documentation and it seems to mean something significant, but I can't figure out exactly what (the documentation I found about it seemed extremely obscure to me).Has somebody some insight on what is the meaning of this extra s added at the end of some ARM instructions ?
Difference between 'add' and 'adds' in ARM assembler?
arm;gas
Usual ADD doesn't update flags.ADDS does.See better documentation at arm infocenter.As it wrote there:If S is specified, these instructions update the N, Z, C and V flags according to the result.