Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Feb 2024 18:24:03 -0800
From:      Mark Millard <marklmi@yahoo.com>
To:        FreeBSD Toolchain <freebsd-toolchain@freebsd.org>
Subject:   aarch64 vs. armv7 system clang defaults: -target-abi aapcs (aarch64) vs. -target-abi aapcs-linux (armv7)?
Message-ID:  <DD578A08-25FD-4A5C-88AD-A4F1788883FC@yahoo.com>
References:  <DD578A08-25FD-4A5C-88AD-A4F1788883FC.ref@yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
armv7:

# cc -v main.c
FreeBSD clang version 17.0.6 (https://github.com/llvm/llvm-project.git =
llvmorg-17.0.6-0-g6009708b4367)
Target: armv7-unknown-freebsd15.0-gnueabihf
. . . -target-abi aapcs-linux . . . -x c main.c
. . .


aarch64:

# cc -v main.c
you have mail
FreeBSD clang version 17.0.6 (https://github.com/llvm/llvm-project.git =
llvmorg-17.0.6-0-g6009708b4367)
Target: aarch64-unknown-freebsd15.0
. . . -target-abi aapcs . . . -x c main.c
. . .


FYI:

My understanding is the that aapcs-linux uses 32 bits for enums
and aapcs uses variable length for enums. For aapcs-linux I've
also seen references to "int-sized" instead.


=3D=3D=3D
Mark Millard
marklmi at yahoo.com




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?DD578A08-25FD-4A5C-88AD-A4F1788883FC>