cross armhf tangle
Gary E. Miller
gem at rellim.com
Mon Feb 3 04:10:32 UTC 2025
Yo Hal!
On Sun, 02 Feb 2025 02:33:42 -0800
Hal Murray via devel <devel at ntpsec.org> wrote:
> The cross compile stuff for sizeof is, well, unobvious to me. I
> think I asked about it a while ago with no response.
I must have missed it? What is not obvious?
When you cross compile you tell the CC what the target ABI is. Do this
with the --march option in gcc: "gcc --march=armv8.2-a". gcc then
adjusts the include paths to include the header files specific to that
arch. sizeof() does exactly what you expect, it figures out at
compile time the zie of the object knowing the sizees of things like
an integer from the header files.
RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
gem at rellim.com Tel:+1 541 382 8588
Veritas liberabit vos. -- Quid est veritas?
"If you can't measure it, you can't improve it." - Lord Kelvin
More information about the devel
mailing list