>The ASM output file is:
>mov   ip, sp
>stmdb sp!, {fp, ip, lr, pc}
>sub   fp, ip, #4
>mov   sp, #20480  ; 0x5000
>...
>
>because I use -e start to tell compiler that the
>function start() is the first function run after power
>on, the compiler should not generate the first 3
>instruction ahead of my inlined assembler code.

Declare your function with attribute((naked)).  As the manual says:

@item naked
@cindex function without a prologue/epilogue code
Use this option on the ARM or AVR ports to indicate that the specified
function do not need prologue/epilogue sequences generated by the
compiler.  It is up to the programmer to provide these sequences.

p.


_______________________________________________
http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm
Please visit the above address for information on this list.

Reply via email to