arm7tdmi - NXP LPC2468 - gcc/g++/libstdc++, it's possible?

Jorge Pereira jpereiran at gmail.com
Fri Mar 7 16:47:45 UTC 2008


hi!

i try.

*jjpn at campinho hello$* arm-uclinuxeabi-g++ -mcpu=arm7tdmi -Os
-fomit-frame-pointer -fno-common -fno-builtin -Wall -Wl,-elf2flt="-r" -o
testecpp.bin testecpp.cpp -nostdinc++ -l:/opt/uClibc++/lib/libuClibc++.a
-I/opt/uClibc++/include
*jjpn at campinho hello$* file testecpp.bin
testecpp.bin: BFLT executable - version 4 ram
*jjpn at campinho hello$ *

and send to board, and receive msg.

# ./testecpp.bin
Illegal instruction
#


On Fri, Mar 7, 2008 at 1:42 PM, Khem Raj <kraj at mvista.com> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Jorge Pereira wrote:
>
>
> | when a try execute a BIN on board (LPC2468 from embedded artistis) a
> | receive this message
> |
> | *#* cat /proc/version
> | Linux version 2.6.11.8-hsc0BEIJING (user at eadevenv) (gcc version 2.95.3
> | 20010315 (release)(ColdFire patches - 20010318 from
> | http://fiddes.net/coldfire/)(uClinux<http://fiddes.net/coldfire/%29%28uClinux>
> | <http://fiddes.net/coldfire/%29%28uClinux> XIP and shared lib patches
> | from http://www.snapgear.com/) <http://www.snapgear.com/%29>) #189 Wed
> | Dec 26 16:06:12 CET 2007
> | *#* ./testecpp.bin
> | Illegal instruction
> | *#*
> |
> | Questions!!
> |
> | 1) why this message appear?
>
> arm7tdmi is ARMv4T instruction set. Your problem could be that gcc might
> not be generating code for this architecture by default instead a newer
> one. what happens when you use -mcpu=arm7tdmi
>
>
>
> | 2) exist any form to "running a c++ app in this board LPC2468 from
> | embedded artists??
> |
> | My priority is compile using gcc/g++/threads 3.4 or better.
>
>
> - -Khem
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.7 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFH0XCIUjbQJxVzeZQRAh6uAJ9rEpk7ojmrG+FqoNVLcEQEy1RSqACgioqL
> AiIX4dqahXtvITve12iMViw=
> =S+Zo
> -----END PGP SIGNATURE-----
>



-- 
Regards,
+
---------------------------------------------------------------------------------+
Jorge Pereira, From: Olinda/Pe/Brazil
Home:  http://www.jorgepereira.com.br/
E-mail:  jpereiran at gmail.com, jorge at jorgepereira.com.br
Mobile: +55 (81) 8833-2484
My Public Key: http://www.jorgepereira.com.br/public.pgp
+
---------------------------------------------------------------------------------+
   "Se você ama alguma coisa, liberte-a;
  Se ela não voltar a ti, cace-a e mate-a."
+----------------------------------------------------------------------------------+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.busybox.net/pipermail/uclibc/attachments/20080307/c288bdc3/attachment-0001.htm 


More information about the uClibc mailing list