News for hackers. Stuff that matters.
Re:AI Detectors Falsely Accuse Students of Cheating–With Big... by withinboredom on Monday October 21, 2024 @02:20PM (#41906838)
(older) ARM (aka, big-endian) it will be 01
Re:AI Detectors Falsely Accuse Students of Cheating–With Big... by Syonyk on Monday October 21, 2024 @02:28PM (#41906921)
You'll have to be a lot more specific than "ARM" - Most newer ARM systems are little endian in practical operation, and ARM has been "flexible endian" (you can switch between big and little endian - SCTLR has the relevant bits to control the accesses on most recent ARM ISAs) for some long while now.
Re:AI Detectors Falsely Accuse Students of Cheating–With Big... by clarebear123 on Monday October 21, 2024 @02:24PM (#41906885)
I just ran it on my M2 mac and got 04. Don't compilers typically take endianness into account for things like this anyway?
Re:AI Detectors Falsely Accuse Students of Cheating–With Big... by odo1242 on Monday October 21, 2024 @06:26PM (#41909218)
No, compilers don’t take endianness into account. (especially not C)

You need to use a bit mask in order to make this code endian-independent rather than a pointer alias. Like (uint8_t)(int & 0xFF), or something like that.

Re:AI Detectors Falsely Accuse Students of Cheating–With Big... by Panzer04 on Monday October 21, 2024 @11:56PM (#41911049)
Why would it do that? You're asking for a raw memory address value.
Re:AI Detectors Falsely Accuse Students of Cheating–With Big... by musicale on Wednesday October 23, 2024 @12:31AM (#41921843)
IIRC several currently used architectures (e.g. ARM, Power, z/Architecture, RISC-V) can all run in big-endian mode.

And in the embedded space I think PowerPC and MIPS are still around.