摘要 |
Embodiments of the invention relate to a method, apparatus, and system for source-transparent endian translation. More particularly, embodiments of the invention relate to allowing source code that was previously designed for Big Endian processors to be converted and recompiled to run on Little Endian processors, or vice-versa. In one embodiment, a compiler receives Big Endian source code that is operable on a processor that operates in a Big Endian mode. A source-transparent endian translator works with the compiler or as part of it to translate the Big Endian source code received by the compiler into a Little Endian code format; the Little Endian code format is then further processed by the compiler into Little Endian machine code that is operable on a processor which operates in a Little Endian mode. |