AnsweredAssumed Answered

Big-endian or Little-endian of S12Z

Question asked by Frank Kong on Nov 13, 2018
Latest reply on Nov 18, 2018 by ZhangJennie

Hello, 

     I use the code warrior 10.7 & s12zvml31.

     What's the function of "Bit-field gap limit(0-127 or 255(0xff)) as -1"?. I find the instruction "#pragma bfield_gap_limit -1 /*this guarantee correct bitfield positions*/" in "mc9s12zvml31.h" .  Is it same as Bit-field gap limit?

If they are the same thing ,why I can set -1 on compiler setting?

         

       If I don't add #include "mc9s12zvml31.h" in my own .c file ,the compiler will be little-endian, or it will be big-endian. 

You can see it in the pictures.

     

 

 

 

 

Regards,

Frank

Outcomes