How to place assembler function in ram

a function could be placed in ram by assigning the
__ram switch.
How to do this for assembler functions?

//*********************************************************************
// 32*32 bit signed/unsigned multiply in ARM Assembler
// Returns 64 bit result in R0,R1
//*********************************************************************
AREA ?C?bla, CODE, READONLY, ALIGN=2

PUBLIC S_MUL32x32?A
S_MUL32x32?A            PROC CODE32

                SMULL   R2,R0,R1,R0                     ; R0,R2 := R1*R0
                mov     R1,R2
                bx      lr
                ENDP

PUBLIC U_MUL32x32?A
U_MUL32x32?A            PROC CODE32

                UMULL   R2,R0,R1,R0                     ; R0,R2 := R1*R0
                mov     R1,R2
                bx      lr
                ENDP

                END
//*********************************************************************

maybe there is a chance in the red line.
i'm not sure i just copied this line from an example-programm...

Parents
  • Hello to everybody,
    sorry when my question looks like fake, but
    i'am really despaired.
    So would be nice if somebody gives my a hint.

    AREA ?C?bla, CODE, READONLY, ALIGN=2
    
    AREA ?C?bla, ERAM, READONLY, ALIGN=2
    

    I want to have the Assembler code in RAM for speed.

    But when i replace "CODE" with "ERAM" i get error A9 syntax error.

    SOS
    ...---...
    CQD

Reply
  • Hello to everybody,
    sorry when my question looks like fake, but
    i'am really despaired.
    So would be nice if somebody gives my a hint.

    AREA ?C?bla, CODE, READONLY, ALIGN=2
    
    AREA ?C?bla, ERAM, READONLY, ALIGN=2
    

    I want to have the Assembler code in RAM for speed.

    But when i replace "CODE" with "ERAM" i get error A9 syntax error.

    SOS
    ...---...
    CQD

Children
More questions in this forum