This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How to optimize newlib for a specific ARM processor?


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.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]