Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
11/23/05 15:45
Read: times


 
#104059 - Not So fast
Responding to: ???'s previous message
It is require when structures are passed between machine with different "int" or "char" sizes. Or to machines with fixed memory alignment.

if a structure is sent from a '51 to a PC as a binary block see what happens.

in the 51 char = 1 byte
on the PC it is 2 or 4 bytes.
so the '51 has to pad its struct so the PC will receive it in the expected format.

Note that this is not the only way to solve the problem.

List of 18 messages in thread
TopicAuthorDate
Structure Paddin            01/01/70 00:00      
   never in t he '51            01/01/70 00:00      
      Not So fast            01/01/70 00:00      
         Neil, you are correct, but            01/01/70 00:00      
         Char byte            01/01/70 00:00      
            multi-byte characters            01/01/70 00:00      
               Not relevant            01/01/70 00:00      
            CHAR_BITS >= 8            01/01/70 00:00      
               The char bytes back            01/01/70 00:00      
   Not relevant to the 8-bit processors            01/01/70 00:00      
   Windoze            01/01/70 00:00      
      That's a good one :)            01/01/70 00:00      
         XP            01/01/70 00:00      
         XP means            01/01/70 00:00      
         xp never crashes...            01/01/70 00:00      
            applications            01/01/70 00:00      
   two things coming to mind            01/01/70 00:00      
      [OT] Keil?            01/01/70 00:00      

Back to Subject List