This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: How to optimize newlib for a specific ARM processor?
- From: "Shaun Jackman" <sjackman at gmail dot com>
- To: "Fernando Ramos" <framos at hypercom dot com>
- Cc: newlib at sourceware dot org
- Date: Sat, 16 Sep 2006 10:23:01 -0600
- Subject: Re: How to optimize newlib for a specific ARM processor?
- References: <482F3C06ECF00C44AEC226520C6FCB1A503892@EXCHANGEVS.HYPERCOM.COM>
- Reply-to: "Shaun Jackman" <sjackman at gmail dot com>
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.