Optimal CFLAGS for armv5te?
Oleg Kravchenko
oleg at kaa.org.ua
Mon May 31 11:56:26 UTC 2010
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'
I am confused :)))
P.S. -march=native work only for x86 ;D
More information about the uClibc
mailing list