[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [DotGNU]Endianness?
From: |
Rhys Weatherley |
Subject: |
Re: [DotGNU]Endianness? |
Date: |
Sat, 08 Nov 2003 07:46:19 +1000 |
User-agent: |
KMail/1.4.3 |
On Saturday 08 November 2003 03:30 am, HJ wrote:
> Is it known wether MS.NET is host-endian or little-endian always?
The IL bytecode system is endian-independent for the most part, and C# code
will not know anything about the endianness or word size of the system unless
it explicitly goes looking (e.g. the "BitConverter" class).
C/C++ programs, when compiled by Microsoft's compiler, will generate bytecode
that is dependent upon a little-endian 32-bit architecture that has Windows
DLL's like msvcrt.dll present. They are completely non-portable.
Portable.NET's C compiler uses a different code generation strategy and
creates programs that are system-independent for the most part.
Cheers,
Rhys.