Affects the way machine code is disassembled by options such as
--disassemble, so that it is disassembled in the same way that the specified processor or architecture interprets it.
the name of a processor or architecture:
Processor and architecture names are not case-sensitive.
Wildcard characters are not accepted.
The following table shows examples of supported processor names for each
architecture. For a complete list of the supported architecture and processor names,
Table 3-2 Supported ARM architectures
|Processor and architecture name||Description||Example processor names|
||ARMv7 with Thumb (Thumb-2 technology) only, and without hardware divide||-|
||ARMv7 application profile supporting virtual MMU-based memory systems, with ARM, Thumb (Thumb-2 technology) and ThumbEE, DSP support, and 32-bit SIMD support||
||Enables the use of the
||ARMv8, AArch32 state||-|
||ARMv8, AArch32 state with cryptographic instructions||-|
||ARMv8, AArch32 state without Advanced SIMD instructions||-|
||ARMv8, AArch64 state||-|
||ARMv8, AArch64 state with cryptographic instructions||-|
||ARMv8, AArch64 state without Advanced SIMD instructions||-|
7-A.securityis not an actual ARM® architecture, but rather refers to
7-Aplus Security Extensions.
- The full list of supported architectures and processors depends on your license.
The following general points apply to processor and architecture options:
Selecting the processor selects the appropriate architecture, Floating-Point Unit (FPU), and memory organization.
If you specify an architecture name for the
--cpuoption, machine code is disassembled by options such as
--disassemblefor that architecture. If you specify
--disassemble, then the disassembly can be assembled for any processor supporting that architecture.
--cpu=7-A --disassembleproduces disassembly that can be assembled for the Cortex®â€‘A7 processor.
Some specifications of
NoteAny explicit FPU, set with
--fpuon the command line, overrides an implicit FPU.
--fpuoption is specified and no
--cpuoption is specified,
If you do not specify a
--cpu option, then
fromelf disassembles machine instructions in an
architecture-independent way. This means that fromelf
disassembles anything that it recognizes as an instruction by some architecture.
To specify the Cortexâ€‘M4 processor, use: