[oe] [PATCH] cortex-m3: adjusted target cflags
Enrico Scholz
enrico.scholz at sigma-chemnitz.de
Mon Feb 7 22:27:38 UTC 2011
Khem Raj <raj.khem at gmail.com> writes:
> Can you check what does gcc emits in an assembly file when using
> -mcpu=cortex-m3 in your case. If it emits sdiv instruction or not
>
> int foo (long a, long b)
> {
> return a/b;
> }
$ arm-linux-uclibceabi-gcc -mthumb -mcpu=cortex-m3 -mfpu=vfp -mfloat-abi=softfp -O1 -c x.c
$ arm-linux-uclibceabi-objdump -d x.o
00000000 <foo>:
0: fb90 f0f1 sdiv r0, r0, r1
4: 4770 bx lr
6: bf00 nop
Enrico
More information about the Openembedded-devel
mailing list