Thursday, July 30, 2009

Are the turbo-C++ and Borland C++ big-endian or small-endian?

Please give me the reasons also...

Are the turbo-C++ and Borland C++ big-endian or small-endian?
They produce code that uses whichever endianness is required. The CPU determines the endianness. The OS has to be written to utilize that endianness, and the compiler has to produce code for that endianness.
Reply:It depends on CPU for thich you compile your C++ code.


More likely you will do this for Intel and AMD x86 processors - those are little-endian.





While Motorolla and IBM PowerPC are big-endian.


No comments:

Post a Comment