Sign in Join
FPDoc Onlineexperiment

CurrentCPU function

In unit fpMkUnit

Gets the current CPU architecture

Declaration

pascal
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.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.