Revision: 6294
Author: [email protected]
Date: Thu Jan 13 01:24:32 2011
Log: Edited wiki page CrossCompilingForARM through web user interface.
http://code.google.com/p/v8/source/detail?r=6294

Modified:
 /wiki/CrossCompilingForARM.wiki

=======================================
--- /wiki/CrossCompilingForARM.wiki     Wed Jan  5 06:19:45 2011
+++ /wiki/CrossCompilingForARM.wiki     Thu Jan 13 01:24:32 2011
@@ -2,9 +2,9 @@

 = Using Sourcery G++ Lite =

-The Sourcery G++ Lite cross compiler suite is a free version of Sourcery G++ from [http://www.codesourcery.com CodeSourcery].
-
-Determine the version you need for your host/target combination. The following instructions uses [http://www.codesourcery.com/sgpp/lite/arm/portal/release858 2009q1-203 for ARM GNU/Linux]. +The Sourcery G++ Lite cross compiler suite is a free version of Sourcery G++ from [http://www.codesourcery.com CodeSourcery]. There is a page for the [http://www.codesourcery.com/sgpp/lite/arm GNU Toolchain for ARM Processors]. Determine the version you need for your host/target combination.
+
+The following instructions uses [http://www.codesourcery.com/sgpp/lite/arm/portal/release858 2009q1-203 for ARM GNU/Linux], and if using a different version please change the URLs and `TOOL_PREFIX`below accordingly.

 == Installing on host and target ==

@@ -27,7 +27,7 @@

 == Building using scons without snapshot ==

-The simplest way to build is without snapshot, as that does no involve using the simulator to generate the snapshot. The following script will build the sample shell without snapshot for ARMv7. +The simplest way to build is without snapshot, as that does no involve using the simulator to generate the snapshot. The following script will build the sample shell without snapshot for ARM v7.

 {{{
 #!/bin/sh
@@ -49,19 +49,30 @@

If using the default libraries on the target just leave out the setting of `ARM_TARGET_LIB` and if the target libraies are in a different location ARM_TARGET_LIB` needs to be adjusted accordingly.

-If testing building for ARMv5 the setting of `CCFLAGS` and `ARM_TARGET_LIB` should be changed to: +The default for Sourcery G++ Lite is ARM v5te with software floating point emulation, so if testing building for ARM v5te the setting of `CCFLAGS` and `ARM_TARGET_LIB` should be changed to:

 {{{
-CCFLAGS="-mfpu=vfp -mfloat-abi=softfp"
+CCFLAGS=""
 ARM_TARGET_LIB=/opt/codesourcery/arm-2009q1/arm-none-linux-gnueabi/libc
 }}}

-or the following if the target has no VFP unit
+Relying on defaults in the tool chain might lead to surprises, so for ARM v5te with software floating point emulation the following is more explicit:

 {{{
-CCFLAGS=""
+CCFLAGS="-march=armv5te -mfloat-abi=soft"
 ARM_TARGET_LIB=/opt/codesourcery/arm-2009q1/arm-none-linux-gnueabi/libc
 }}}
+
+If the target has an VFP unit use the following:
+
+{{{
+CCFLAGS="-mfpu=vfp -mfloat-abi=softfp"
+ARM_TARGET_LIB=/opt/codesourcery/arm-2009q1/arm-none-linux-gnueabi/libc
+}}}
+
+For other ARM versions please check the Sourcery G++ Lite documentation.
+
+As mentioned above the default for Sourcery G++ Lite used here is ARM v5te with software floating point emulation. However beware that this default might change between versions and that there is no unique defaults for ARM tool chains in general, so always passing `-march`, `-mfloat` and possibly `-mfpu` is recommended.

 == Building using scons with snapshot ==

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to