简体   繁体   中英

ELF containing NEON or VFP3 instructions?

Is it possible to see if an ELF contains NEON instructions?

My use case is:

On a Beaglebone I want to use OpenCV with NEON extensions. The BeagleBone runs Ubuntu. I'm not sure if the binaries from repository are compiled with NEON extensions activated. In case that the extensions are not activated I have to compile OpenCV by myself.

try readelf -A and check if you see something like

Tag_Advanced_SIMD_arch: NEONv1
Tag_FP_arch: VFPv3

readelf -A command works well for my situation. resulet may be like some blow:

Attribute Section: aeabi

File Attributes Tag_CPU_name: "7-A" Tag_CPU_arch: v7 Tag_CPU_arch_profile: Application Tag_ARM_ISA_use: Yes Tag_THUMB_ISA_use: Thumb-2 Tag_FP_arch: VFPv3 Tag_Advanced_SIMD_arch: NEONv1 Tag_ABI_PCS_wchar_t: 4 Tag_ABI_FP_denormal: Needed Tag_ABI_FP_exceptions: Needed Tag_ABI_FP_number_model: IEEE 754 Tag_ABI_align_needed: 8-byte Tag_ABI_align_preserved: 8-byte, except leaf SP Tag_ABI_enum_size: int Tag_ABI_VFP_args: VFP registers Tag_CPU_unaligned_access: v6 Tag_MPextension_use: Allowed Tag_Virtualization_use: TrustZone

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM