Jump to content
rbairos

Big Endian Little Endian On Pic18f25j10

Recommended Posts

Hi

Sorry, Ive searched the forums, and not entirely sure on the answer.

Does anyone which endian Boost C++ uses for the PIC18F25J10 ?

 

Given the following code:

 

------------------------------

union{

unsigned long four;

unsigned char one[4];

}test;

 

test.four = 0x44332211;

---------------------------------

 

Ive deteremined:

 

one[0] = 0x11;

one[1] = 0x22;

one[2] = 0x33;

one[3] = 0x44;

 

 

So, this means Little Endian correct?

(sorry Im just juggling so many small details on this project, this type of question trips me up).

 

Thanks,

Rob.

Share this post


Link to post
Share on other sites
Does anyone which endian Boost C++ uses for the PIC18F25J10 ?

 

All SourceBoost compilers use little endian for all targets.

 

Regards,

Pavel

Share this post


Link to post
Share on other sites

Your content will need to be approved by a moderator

Guest
You are commenting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×