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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
11/28/09 11:22
Read: times


 
#171270 - Probably
Responding to: ???'s previous message
Per Westermark said:
I still haven't seen any compiler vendor selecing 24-bit or 32-bit int size for an 8-bit processor.

Indeed - but I seem to remember that there might be some that have chosen 8 bits for an int?

The requirements of the 'C' standard are conflicting here: the standard says that int should be at least 16 bits, but also recommends that it should be the same size as the processor's natural word-size.

The main point here is: Do not assume anything - check it specifically in the Manual!



List of 9 messages in thread
TopicAuthorDate
Unsigned Long Roll-over at 65535?            01/01/70 00:00      
   Typecast before the shift.            01/01/70 00:00      
      oh..my mistake.....            01/01/70 00:00      
         Integer promotion            01/01/70 00:00      
            Note on Integer Promotion and Keil            01/01/70 00:00      
               Not much of a choice, really            01/01/70 00:00      
                  Probably            01/01/70 00:00      
                     Design decisions            01/01/70 00:00      
                        Oh yes they can!            01/01/70 00:00      

Back to Subject List