In my hurry I didn't read your answers properly. Sorry for that. My cpu is a Cortex A8 with an ARMv7-a version architecture and my gcc compiler uses #define __ARM_ARCH_4T__ 1 . The patch you gave me didnt change the compile errors. I really don't know about ARM Instruction Set versions, but I hope this might help you to fix a potential bug.
Actually my problem is not to compile on the board itself, but rather to be sure that my tests results are accurate and it could be solved more easily if can you confirm me I can trust the cross-compiled shell obtained the following way: 1) Modifying the v8 SConstruct adding 'CCFLAGS': ['- march=armv7-a'] to the arm architecture (line 162) 2) Exporting my environment variables CC, CXX, AR, AS, RANLIB, LD to my CodeSourcery crosstools (arm-none-linux-gnueabi-gcc , etc) 3) Cross-compiling with scons arch=arm sample=shell 4) Running the cross-compiled shell on my cpu I know this may seems dumb, but I met quite a few issues doing these tests... On Sep 9, 10:56 am, Rames <[email protected]> wrote: > It is actually more complicated than that. I have a Cortex A8 and not > an ARM8. > > I give some updates soon. > > On Sep 9, 10:03 am, Rames <[email protected]> wrote: > > > I get this result: > > r...@beagleboard:~# g++ -dM -E null.c | grep ARCH > > #define __ARM_ARCH_4T__ 1 > > > This first looked weird to me, but I checked ARM infos and got the > > following: > > (http://en.wikipedia.org/wiki/ARM_architecture) > > > Familiy: ARM8 > > Architecture version: ARMv4 > > Core: ARM810 > > > So indeed the ARm8 has a v4 architechture, while for example ARM7TDMI > > (but not ARM7) and ARM9E (but not ARM9TDMI) have an architecture with > > version 5. > > > So my ARM architecture is indeed under v5 and is not supported. > > > Thanks for your help! > > > Alexandre > > > On Sep 9, 2:34 am, Erik Corry <[email protected]> wrote: > > > > 2009/9/8 A.Rames <[email protected]>: > > > > > I am trying to compile v8 shell example on my beagleboard, but the > > > > build meets fails ont the following error: > > > > > g++ -o obj/release/arm/cpu-arm.o -c -Wall -Werror -W -Wno-unused- > > > > parameter -Wnon-virtual-dtor -pedantic -O3 -fomit-frame-pointer -fdata- > > > > sections -ffunction-sections -ansi -fno-rtti -fno-exceptions -Wall - > > > > Werror -W -Wno-unused-parameter -Wnon-virtual-dtor -pedantic -O3 - > > > > fomit-frame-pointer -fdata-sections -ffunction-sections -ansi - > > > > DV8_TARGET_ARCH_ARM -DV8_NATIVE_REGEXP -DENABLE_LOGGING_AND_PROFILING - > > > > Isrc src/arm/cpu-arm.cc > > > > > /tmp/ccMqAVAn.s: Assembler messages: > > > > /tmp/ccMqAVAn.s:58: Error: selected processor does not support `bkpt > > > > 0' > > > > > I actually managed to get v8 javascript shell work by cross-compiling > > > > it with the CodeSourcery toolchain, but I would like to compile it on > > > > the board itself as the cross-compiled shell seems not very efficient: > > > > I get a score around 93 on the v8 version 3 test. This seems quite low > > > > compared to the 800 score on a 300MHz faster x86 intel processor, and > > > > compared to SFX without JIT on the same board ( "only" 45% slower > > > > whereas it's about 5 times slower on other processors) > > > > > I am not very skilled about arm architectures and how v8 supports > > > > them, but reading through the code I noticed there is no > > > > __ARM_ARCH_8__ test like for other arm architectures in macro- > > > > assembler-arm.cc l.57. Is the arm 8 architecture not supported? > > > > ARM have a confusing system where their instruction set architectures > > > are numbered and their implementations are also numbered, but the > > > numbers have nothing to do with each other. > > > > ARM7 implements ARMv4 > > > ARM9 implements ARMv5 > > > ARM11 implements ARMv6 > > > Cortex A8 implements ARMv7 > > > > I probably got that wrong. It gives me a headache. The > > > __ARM_ARCH_xx__ macros refer to the instruction set. > > > > > Could someone either help me fix this error or confirm (or infirm) > > > > those weird results? > > > > > Thanks > > > > -- > > > Erik Corry, Software Engineer > > > Google Denmark ApS. CVR nr. 28 86 69 84 > > > c/o Philip & Partners, 7 Vognmagergade, P.O. Box 2227, DK-1018 > > > Copenhagen K, Denmark. --~--~---------~--~----~------------~-------~--~----~ v8-users mailing list [email protected] http://groups.google.com/group/v8-users -~----------~----~----~----~------~----~------~--~---
