Hi,
I play with Sitara AM335x Starter Kit now. I find that a simple main() function using Thumb code from a replied post on this forum. I wonder how to change it to ARM instruction code. I do not see any option on
arm-linux-gnueabihf-gcc
from its help message.
The following post mentioned to change compiler options, see below please. Could you tell me what options I can use? Or, where can I find these information?
Thanks,
http://e2e.ti.com/support/arm/sitara_arm/f/791/p/308591/1074586.aspx#1074586
Hi Eric,
If you are using LINUXEZSDK-AM335X:, then an optimized whetstone is included prebuilt in the file system. The following measurement is on am AM335x GP EVM running at 800 MHz CPU clock rate.
You can download the LINUXEZSDK-AM335x here: http://www.ti.com/tool/linuxezsdk-sitara
root@am335x-evm:~# /usr/bin/whetstone 50000
Loops: 50000, Iterations: 1, Duration: 11 sec.
C Converted Double Precision Whetstones: 454.5 MIPS
root@am335x-evm:~# cat /proc/cpuinfo
Processor : ARMv7 Processor rev 2 (v7l)
BogoMIPS : 795.44
Features : swp half thumb fastmult vfp edsp thumbee neon vfpv3 tls
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x3
CPU part : 0xc08
CPU revision : 2
Hardware : am335xevm
Revision : 0000
Serial : 0000000000000000
There is also a project included in the SDK in the following directory: $(SDK_HOME)/example_applications/arm-benchmarks-1.3/whetstone
So you can build it yourself and run it and look at all the compiler flag settings. You should be able to get the same numbers out.
If this post resolves your issue, please click on the verified answer.
Regards,
Jeff L