Akshully, CFFI gets the information from trivial-features.
—♯ƒ • François-René ÐVB Rideau •Reflection&Cybernethics• http://fare.tunes.org “Ad hominem is not valid as an argument, but often valid as a conclusion — or indeed as a premise — in which case: avoid further argument.”
On Sun, Feb 4, 2024 at 1:52 PM Faré fahree@gmail.com wrote:
Use CFFI, see which of #+little-endian or #+big-endian is enabled. Assume you're not on a nuxi-endian machine.
—♯ƒ • François-René ÐVB Rideau •Reflection&Cybernethics• http://fare.tunes.org “Compulsory apologies mostly train children to say things they don’t mean — that is, to lie.” ― Alfie Kohn, ‘Unconditional Parenting’
On Sun, Feb 4, 2024 at 12:04 PM Marco Antoniotti marco.antoniotti@unimib.it wrote:
Hello everybody,
I am in a rabbit hole (don't ask!), and I need to drag some other people with me.
What is the consensus about the most portable way to detect the endianness of a machine/platform? (Ok, we can assume that while running on an ARM the endianness is "fixed" by the OS)
All the best
MA
-- Marco Antoniotti, Professor tel. +39 - 02 64 48 79 01 DISCo, Università Milano Bicocca U14 2043 http://dcb.disco.unimib.it Viale Sarca 336 I-20126 Milan (MI) ITALY