ProjectsPEArch

 Language  

PEArch

Introduction

A small tool that tells you which CPU architecture a given Windows PE is made for.

A total of 35 architectures are supported by this tool.

Usage

This tool can either be used in a command prompt with the options below.
Or, you can simply drop a file onto the .exe or a shortcut to get the same result.

PEArch.exe [/?] [/E|/AsError] [/H|/AsHex] [/F|/FullText] <File>

Options:
  /?             Prints this help text, and some additional details.
  /E, /AsError   Gives out the result as an error code.
  /H, /AsHex     Prints the architecture as a hex number.
  /F, /FullText  Prints a longer description of the architecture.
Click here to show/hide the architecture and return codes
STDOUTSTDOUT with /AsHexSTDERR with /AsErrorDescription (Source: MSDN)
UNKNOWN0x00The content of this field is assumed to be applicable to any machine type
ALPHA0x184388Alpha AXP, 32-bit address space
ALPHA640x284644Alpha 64, 64-bit address space
AM330x1d3467Matsushita AM33
AMD640x866434404x64
ARM0x1c0448ARM little endian
ARM640xaa6443620ARM64 little endian
ARM64EC0xA64142561ABI that enables interoperability between native ARM64 and emulated x64 code.
ARM64X0xA64E42574Binary format that allows both native ARM64 and ARM64EC code to coexist in the same file.
ARMNT0x1c4452ARM Thumb-2 little endian
AXP640x284644AXP 64 (Same as Alpha 64)
EBC0xebc3772EFI byte code
I3860x14c332Intel 386 or later processors and compatible processors
IA640x200512Intel Itanium processor family
LOONGARCH320x623225138LoongArch 32-bit processor family
LOONGARCH640x626425188LoongArch 64-bit processor family
M32R0x904136929Mitsubishi M32R little endian
MIPS160x266614MIPS16
MIPSFPU0x366870MIPS with FPU
MIPSFPU160x4661126MIPS16 with FPU
POWERPC0x1f0496Power PC little endian
POWERPCFP0x1f1497Power PC with floating point support
R3000BE0x160352MIPS I compatible 32-bit big endian
R30000x162354MIPS I compatible 32-bit little endian
R40000x166358MIPS III compatible 64-bit little endian
R100000x168360MIPS IV compatible 64-bit little endian
RISCV320x503220530RISC-V 32-bit address space
RISCV640x506420580RISC-V 64-bit address space
RISCV1280x512820776RISC-V 128-bit address space
SH30x1a2418Hitachi SH3
SH3DSP0x1a3419Hitachi SH3 DSP
SH40x1a6422Hitachi SH4
SH50x1a8424Hitachi SH5
THUMB0x1c2450Thumb
WCEMIPSV20x169361MIPS little-endian WCE v2v2

Output examples

Without options:

Command: pearch "C:\Windows\explorer.exe"
> STDOUT: AMD64
> STDERR:
> ERRORLEVEL: 0
Command: pearch "C:\Windows\non-existant-file.exe"
> STDOUT:
> STDERR: Cannot open file !
> ERRORLEVEL: 12

With /AsHex and /AsError:

Command: pearch /AsHex "C:\Windows\explorer.exe"
> STDOUT: 8664
> STDERR:
> ERRORLEVEL: 0
Command: pearch /AsError "C:\Windows\explorer.exe"
> STDOUT:
> STDERR:
> ERRORLEVEL: 34404
Command: pearch /AsError /AsHex "C:\Windows\explorer.exe"
> STDOUT: 8664
> STDERR:
> ERRORLEVEL: 34404
Command: pearch /AsError /AsHex "C:\Windows\non-existant-file.exe"
> STDOUT:
> STDERR: Cannot open file !
> ERRORLEVEL: 0

Downloads

CPU ArchitectureRequirementsDownloads
x64Windows 7
x86

License

This software and its source code is released in the Public Domain (CC0 1.0 Universal).

Links

#application#cli#windows#windows-pe#cpu-arch