On 24/03/11 03:09, Michael Hope wrote:
Hi Barry. GCC can be switched at runtime by supplying -march=* and/or
-mcpu=* flags to the compiler, just as you have done below. The
'--with-arch=*' lines you see below set what GCC compiles to by
default.
While that is true, but the libraries that come with the compiler are
probably still inappropriate for older architectures.
The short answer is that, no, the Linaro *binary* releases will not
support -march=armv5.
However, you can build your own compiler from the Linaro sources, and
then build the libraries you need to match, and you can have v5 support.
This is not a straightforward process. :(
If you'd prefer not to build your own tools, may I recommend
CodeSourcery's Sourcery G++ Lite for ARM GNU/Linux:
http://www.codesourcery.com/sgpp/lite/arm
That compiler defaults to ARMv5TE. If that's too new, the toolchain also
contains prebuilt libraries for ARMv4T (-march=armv4t) and those should
be compatible. Although it is not the Linaro compiler, it is somewhat
similar, and programs you build should be compatible with Ubuntu.
(Disclosure: I work for CodeSourcery).
Hope that helps
Andrew
_______________________________________________
linaro-toolchain mailing list
linaro-toolchain@lists.linaro.org
http://lists.linaro.org/mailman/listinfo/linaro-toolchain