LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   gcc -march for the ARM9 core (https://www.linuxquestions.org/questions/linux-newbie-8/gcc-march-for-the-arm9-core-944104/)

lb_dbd 05-09-2012 01:00 PM

gcc -march for the ARM9 core
 
I am trying to compile a C test program for the ARM9 core and cannot seem
to get the right architecture comple option set correctly.
using the following I get bad value (arm9)

gcc -march=arm9 test.c

test.c:1:0: error: bad value (arm9) for -march= switch

Nermal 05-09-2012 01:21 PM

Just checked the manual and there is no arm9.

http://gcc.gnu.org/onlinedocs/gcc-4....ml#ARM-Options

is this for a RPi if so I think that uses arm7.

knudfl 05-09-2012 03:16 PM

When you are using your Linux Computer to compile software for arm :
A complete tool-chain is a must.
( Unless the used Linux computer also has an arm processor. ( arm9.))

A tool-chain is : binutils, gcc, a *libc. (Glibc Uclibc eglibc etc.)
All built for arm only.

The recommended tool-chain : crosstool-ng http://crosstool-ng.org/
> http://crosstool-ng.org/download/cro...1.15.2.tar.bz2

.


All times are GMT -5. The time now is 10:21 AM.