This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

force gcc to NOT use thumb?

Note: This was originally posted on 11th December 2010 at http://forums.arm.com

Hi.

I'm using a Beagleboard with gcc
I'm looking for the parameter to use to ask gcc to not use thumb instruction !!!

does anybody know hox I con do that?

Thank's
Etienne
Parents
  • Note: This was originally posted on 11th December 2010 at http://forums.arm.com

    Hum.

    -marm seems to work thank's
    but I still have some interrogation

    I have tried this command

    gcc -S -marm add.c

    an the code produced is


    .arch armv7-a
    ...
    .file "add.c"
    .text
    .align 2
    .global add
    .type add, %function
    add:
    @ args = 0, pretend = 0, frame = 8
    @ frame_needed = 1, uses_anonymous_args = 0
    @ link register save eliminated.
    ...
    bx lr
    .size add, .-add
    .ident "GCC: (Ubuntu/Linaro 4.4.4-14ubuntu5) 4.4.5"
    .section .note.GNU-stack,"",%progbits

    My problem is about the
    bx lr instruction.

    Bx intruction Does it not supposed to swap between ARM and thumb mode ?

    Etienne
Reply
  • Note: This was originally posted on 11th December 2010 at http://forums.arm.com

    Hum.

    -marm seems to work thank's
    but I still have some interrogation

    I have tried this command

    gcc -S -marm add.c

    an the code produced is


    .arch armv7-a
    ...
    .file "add.c"
    .text
    .align 2
    .global add
    .type add, %function
    add:
    @ args = 0, pretend = 0, frame = 8
    @ frame_needed = 1, uses_anonymous_args = 0
    @ link register save eliminated.
    ...
    bx lr
    .size add, .-add
    .ident "GCC: (Ubuntu/Linaro 4.4.4-14ubuntu5) 4.4.5"
    .section .note.GNU-stack,"",%progbits

    My problem is about the
    bx lr instruction.

    Bx intruction Does it not supposed to swap between ARM and thumb mode ?

    Etienne
Children
No data