cortex-m0 objdump

Asked by bluesnail1986

Hi
I compiled&linked an elf file successfully by arm-none-eabi-gcc for cortex-m0, but I find .s file is weird after using arm-none-eabi-objdump. Some strange assembly instructions show up, .e.g. svcge/subscs/andeq. I can't figure out why this happen. Is there any possibility that I used wrong compile/link/objdump options? Thanks.

Question information

Language:
English Edit question
Status:
Solved
For:
GNU Arm Embedded Toolchain Edit question
Assignee:
No assignee Edit question
Solved by:
bluesnail1986
Solved:
Last query:
Last reply:
Revision history for this message
Thomas Preud'homme (thomas-preudhomme) said :
#1

Hi,

"ge", "cs" and "eq" at the end of "svc", "subs" and "and" respectively are condition upon which the instruction are executed. See section A6.2 "Standard assembler syntax fields" on field <c> and related section A4.1.2 "Conditional execution" of the ARMv6-M Architecture Reference Manual available on ARM website [1].

[1] http://infocenter.arm.com/help/index.jsp in section ARM Architecture > Reference Manuals > ARMv6-M Reference Manual.

Best regards.

Revision history for this message
bluesnail1986 (cat-butterfly8689) said :
#2

Hi Thomas:
Thanks for your immediate response. What I reported happened under Ubuntu, but now objdump seems working OK under Windows. I will try to find the difference between the two environments, and the linkage you provided will be a good reference for me. Perhaps I will bother you later. Thanks again for your help.