我要评分
获取效率
正确性
完整性
易理解

-m64 Compilation Option

Symptom

gcc: error: unrecognized command line option '-m64'

Cause

-m64 is an application compilation option for 64-bit x86. To generate code for the AMD x86 64-bit architecture, set int to 32 bits, long to 64 bits, and pointer to 64 bits. However, the ARM64 platform does not support this setting.

Procedure

Set the compilation option of the ARM64 platform to -mabi=lp64.