I'm using Mediatek X20 dev board and gcc-linaro-6.3.1-2017.05
version
for benchmark aarch64
vs aarch32
.
So I want to build binaries as 2 types of aarch32
abi : lp64
, ilp32
.
From gcc manual, (@ [toolchain_path]/share/doc/gcc/AArch64-Options.html)
It says I can choose ilp32
and lp64
with -mabi
option.
But when I use -mabi=lp64
or -mabi=ilp32
, gcc
makes error like below.
armv8l-linux-gnueabihf-gcc: error: unrecognized argument in option \u2018-mabi=lp64\u2019
armv8l-linux-gnueabihf-gcc: note: valid arguments to \u2018-mabi=\u2019 are: aapcs aapcs-linux apcs-gnu atpcs iwmmxt
How can I make ilp32
and lp64
formated binary?
And How can I check the binary's format?
Thanks for your reply :)