Back

LL040

Inline assembler block

Object Pascal — Delphi & Free Pascal
Warning
Delphi

Inline assembler is non-portable across CPU architectures and hard to maintain

inline assembler is non-portable across CPU architectures and hard to maintain.

Why this severity

inline assembler is non-portable across CPU architectures and hard to maintain.


Known false positives

performance-critical inner loops validated for a single target platform.

Remediation example

function SwapBytes(Value: Cardinal): Cardinal;
begin
  Result := System.Swap(Value);
end;

Reconnecting… Connection lost. Reload