Optimal CFLAGS for armv5te?
Oleg Kravchenko
oleg at kaa.org.ua
Tue Jun 1 09:25:08 UTC 2010
вівторок 01 червень 2010 10:19:25 Khem Raj ви написали:
> On Mon, May 31, 2010 at 4:56 AM, Oleg Kravchenko <oleg at kaa.org.ua> wrote:
> > What optimal cflags for CPU:
> >>asusp535 ~ # cat /proc/cpuinfo
> >>Processor : XScale-PXA270 rev 7 (v5l)
> >>BogoMIPS : 519.37
> >>Features : swp half thumb fastmult edsp iwmmxt
> >>CPU implementer : 0x69
> >>CPU architecture: 5TE
> >>CPU variant : 0x0
> >>CPU part : 0x411
> >>CPU revision : 7
> >>Cache type : undefined 5
> >>Cache clean : undefined 5
> >>Cache lockdown : undefined 5
> >>Cache format : Harvard
> >>I size : 32768
> >>I assoc : 32
> >>I line length : 32
> >>I sets : 32
> >>D size : 32768
> >>D assoc : 32
> >>D line length : 32
> >>D sets : 32
> >>
> >>Hardware : Asus P535
> >>Revision : 0000
> >>Serial : 0000000000000000
> >>
> > I am try with this "-pipe -Os -march=armv5te -mtune=iwmmxt -fomit-frame-
> > pointer" But iwmmxt don't work :(
> >
> >>asusp535 ~ # cat iwmmxt.c
> >>#include <mmintrin.h>
> >>
> >>int main(int, char**)
> >>{
> >>
> >> _mm_unpackhi_pi16(_mm_setzero_si64(), _mm_setzero_si64());
> >> return 0;
> >>
> >>}
> >>
> >>
> >>asusp535 ~ # gcc test_iwmmxt.c -pipe -Os -march=armv5te -mtune=iwmmxt
> >>-fomit-
> >>
> > frame-pointer -o /dev/null
> >
> >>{standard input}: Assembler messages:
> >>{standard input}:22: Error: selected processor does not support
> >>`wunpckelub
> >>
> > wr6,wr4'
> >
> > I am try this "-pipe -Os -march=iwmmxt -mtune=iwmmxt
> > -fomit-frame-pointer" but i can't get stable software for example gcc
> > can't build them self
> >
> > I am watch cflags in uCLibc -march=armv5te -Wa,-mcpu=xscale as result:
> >>asusp535 ~ # gcc test_iwmmxt.c -pipe -Os -march=armv5te -Wa,-mcpu=xscale
> >>-
> >>
> > fomit-frame-pointer -o /dev/null
> >
> >>{standard input}: Assembler messages:
> >>{standard input}:22: Error: selected processor does not support
> >>`wunpckelub
> >>
> > wr6,wr4'
>
> this is iwmmxt instruction. It seems your assembler is not including iwmmxt
> when you select xscale. What version of binutils and gcc are you using.
>
I am use binutils-2.19.1-r1, gcc-4.3.4
> > I am confused :)))
> >
> > P.S. -march=native work only for x86 ;D
> > _______________________________________________
> > uClibc mailing list
> > uClibc at uclibc.org
> > http://lists.busybox.net/mailman/listinfo/uclibc
More information about the uClibc
mailing list