Skip to content

CurrentCPU

Gets the current CPU architecture

Declaration

Source position: fpmkunit.pp line 1698

function CurrentCPU : string;

Function result

Current CPU architecture identifier

Description

CurrentCPU returns the current CPU architecture identifier for the running platform. This function provides architecture detection for conditional compilation and architecture-specific build settings.

The CPU architecture identifier is used to select appropriate compiler targets, optimization options, and platform-specific code generation settings during the build process.