Click here to Skip to main content
15,911,707 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: how to detect endianness of a machine ? Pin
Trollslayer17-May-06 10:02
mentorTrollslayer17-May-06 10:02 
GeneralRe: how to detect endianness of a machine ? Pin
Jörgen Sigvardsson17-May-06 10:04
Jörgen Sigvardsson17-May-06 10:04 
GeneralRe: how to detect endianness of a machine ? Pin
cmk17-May-06 10:54
cmk17-May-06 10:54 
GeneralRe: how to detect endianness of a machine ? Pin
Jörgen Sigvardsson17-May-06 10:56
Jörgen Sigvardsson17-May-06 10:56 
GeneralRe: how to detect endianness of a machine ? Pin
cmk17-May-06 11:04
cmk17-May-06 11:04 
GeneralRe: how to detect endianness of a machine ? Pin
Jörgen Sigvardsson17-May-06 11:07
Jörgen Sigvardsson17-May-06 11:07 
GeneralRe: how to detect endianness of a machine ? Pin
Joshua Quick17-May-06 14:23
Joshua Quick17-May-06 14:23 
GeneralRe: how to detect endianness of a machine ? Pin
Jörgen Sigvardsson17-May-06 20:26
Jörgen Sigvardsson17-May-06 20:26 
Joshua Quick wrote:
That means endianess is not determined at compile time.


Yes it is. PowerPC nor Intel have variable endianess. Nor is it possible to run Intel code directly on a PowerPC and vice versa, so it's not like the same code is shared between the platforms. The Universal Binary contains sections (I think they call it bundles or forks or something like that at Apple) for each platform - copies of eachother. The Intel section is executed on an Intel machine, and the PPC section is executed on the PPC.

The data however may be of varying endianess - I don't know. If you look at the guidelines you provided a link to, it only speaks of data having different endians, and that you have to guard against that - and something that may be a real problem, as the OS is released on platform with differing endianess.
GeneralRe: how to detect endianness of a machine ? Pin
Joshua Quick17-May-06 20:58
Joshua Quick17-May-06 20:58 
AnswerRe: how to detect endianness of a machine ? Pin
Peter Weyzen17-May-06 15:58
Peter Weyzen17-May-06 15:58 
QuestionProblem of RFX_Text under unicode Pin
Temp8317-May-06 6:13
Temp8317-May-06 6:13 
AnswerRe: Problem of RFX_Text under unicode Pin
Steve S17-May-06 6:43
Steve S17-May-06 6:43 
QuestionStoring data in a database.. Pin
altfell17-May-06 6:13
altfell17-May-06 6:13 
AnswerRe: Storing data in a database.. Pin
Hamid_RT17-May-06 6:30
Hamid_RT17-May-06 6:30 
GeneralRe: Storing data in a database.. Pin
altfell17-May-06 6:35
altfell17-May-06 6:35 
GeneralRe: Storing data in a database.. Pin
Hamid_RT17-May-06 6:39
Hamid_RT17-May-06 6:39 
GeneralRe: Storing data in a database.. Pin
Steve S17-May-06 6:41
Steve S17-May-06 6:41 
AnswerRe: Storing data in a database.. Pin
Jim Crafton17-May-06 9:27
Jim Crafton17-May-06 9:27 
Questionwrite/read file simulatenusly Pin
big_denny_20017-May-06 5:42
big_denny_20017-May-06 5:42 
AnswerRe: write/read file simulatenusly Pin
Russell'17-May-06 5:53
Russell'17-May-06 5:53 
AnswerRe: write/read file simulatenusly Pin
Jim Crafton17-May-06 9:34
Jim Crafton17-May-06 9:34 
QuestionGetScrollPos Pin
Sarath C17-May-06 5:01
Sarath C17-May-06 5:01 
QuestionGet dimenstion from image files Pin
Happyjojo17-May-06 4:45
Happyjojo17-May-06 4:45 
AnswerRe: Get dimenstion from image files Pin
Ted Ferenc17-May-06 5:03
Ted Ferenc17-May-06 5:03 
GeneralRe: Get dimenstion from image files Pin
Maximilien17-May-06 5:27
Maximilien17-May-06 5:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.