|
|
AROS Core Developer |
Joined: 14-Jun-2005 Posts: 377
From: Germany | | |
|
| @ppcamiga1
Quote:
In real life 32 bit constans in compiled C code, are stored with arm instructions in little endian format. |
In real Amiga life there is no ARM code used yet and so there is no issue with any constants. Regarding ARM code on ARM machines - no, even constants stored between instructions are big endian if the CPU is running in big endian and the code was compiled for big endian ARM. It is instruction decoder which fetches opcodes in LE, so really only arm code is affected. The rest, including FPU unit, operates in BE if the CPU is told to do so. Well, even MMU page tables are big endian in that case.
Quote:
After setend bi, they have wrong values.
|
Sure, if one is mixing endianness in that way, then very bad things can happen. Therefore such easy endian switching was made obsolete on ARM.
Quote:
which makes arm useless for amiga os. |
Not if ARM is running in big endian mode all the time.Last edited by michalsc on 19-Apr-2021 at 06:03 PM.
|
|