Hi, I made a very simple program #include<stdio.h> int main() { float a=2.3; printf("%f",a); } and compile with arm-none-linux-gnueabi-gcc -mfloat-abi=softfp -mfpu=vfpv3-d16 -mcpu=cortex-a9 test.c and I got Illegal instruction. I am attaching my binary file also On Wed, Apr 14, 2010 at 2:54 PM, trisha yad <trisha1march@xxxxxxxxx> wrote: > Thanks for reply > > we have tryied the following options > 1. arm-none-linux-gnueabi-g++ -mcpu=cortex-a9 -msoft-float test.cpp > 2.arm-none-linux-gnueabi-g++ -march=armv7-a -mtune=cortex-a9 > -mthumb-interwork -mno-apcs-stack-check -mfloat-abi=softfp -o test > test.cpp > > then also i am getting the same "Illegal instruction" out put . > > Out-put > # ./a.out > 1, 2 > 3, 4 > Illegal instruction > > On Wed, Apr 14, 2010 at 2:34 PM, 42Bastian > <list-bastian.schick@xxxxxxxxxxx> wrote: >> Am 14.04.2010 10:38, schrieb trisha yad: >> >>> Build command: >>> >>> >>> Result:arm-none-linux-gnueabi-g++ -msoft-float test.cpp >> >> You should tell the compiler which CPU, AFAIK by default it uses ARMv5TE >> >> >> >> -- >> 42Bastian >> + >> | http://www.sciopta.com >> | Fastest direct message passing kernel. >> | IEC61508 certified. >> + >> >
Attachment:
a.out
Description: Binary data