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

[ loading the pc register ]

Parents
  • Note: This was originally posted on 15th July 2009 at http://forums.arm.com

    I am not familiar with the GNU assembler syntax as I use the ARM tools.  However, based on the ARM syntax it looks what you are doing is getting the address of the label.  Have you tried:

    .extern main
    ldr pc, =main


    thanks. this is actually the same as generating
    a word by ourself for storing the main actual
    address... but less painful to manage, so I will
    use this syntax.
    btw, it doesnot solve the problem...

    Fabien.
Reply
  • Note: This was originally posted on 15th July 2009 at http://forums.arm.com

    I am not familiar with the GNU assembler syntax as I use the ARM tools.  However, based on the ARM syntax it looks what you are doing is getting the address of the label.  Have you tried:

    .extern main
    ldr pc, =main


    thanks. this is actually the same as generating
    a word by ourself for storing the main actual
    address... but less painful to manage, so I will
    use this syntax.
    btw, it doesnot solve the problem...

    Fabien.
Children
No data