On Wed, Oct 17, 2001 at 06:16:44PM -0700, gavin li wrote:
> 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.
Err, -e tells the _linker_ what to call at startup. It tells the compiler
nothing.
> I checked the gcc online manual from www.gnu.org/manual, but I can't
> find how to get rid of the first 3 instructions.
You can't.
Place your asm fragment into a .S file:
.text
.global start
start:
mov sp, #0x5000
b c_start
and name your C function c_start. Everything will be happy.
_______________________________________________
http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm
Please visit the above address for information on this list.