How to optimize newlib for a specific ARM processor?

Shaun Jackman sjackman@gmail.com
Wed Sep 20 03:35:00 GMT 2006


When you compile gcc, use the --with-cpu option to configure.

$ info gccinstall installing configuration

`--with-cpu=CPU'
     Specify which cpu variant the compiler should generate code for by
     default.  CPU will be used as the default value of the `-mcpu='
     switch.  This option is only supported on some targets, including
     ARM, i386, PowerPC, and SPARC.

Cheers,
Shaun

On 9/15/06, Fernando Ramos <framos@hypercom.com> wrote:
> Hi, all.
>
> I'm trying to generate newlib for a board that uses a arm922t processor.
> How can I have configure (or the makefile it generates) create an
> optimized version of newlib for that processor?
> I see that there's a whole set of optimizations for xscale, but I think
> it is not necessary to go to that extreme of customization of the
> configuration files.
> Can I specify the target as arm922t-elf and hope that the libraries will
> be compiled with "-mcpu=arm922t"?
> Should I simply use something like CFLAGS="-mcpu=arm922t" when invoking
> make ?
>
> Suggestions are welcome...
>
> Fernando Ramos
> Senior Software Engineer
> Hypercom Corp.
>



More information about the Newlib mailing list