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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
09/09/06 14:57
Read: times


 
#123971 - making up your own
Responding to: ???'s previous message
I said:
C99 also defines most required int types of specific size and signedness in stdint.h. No need to create your own. Just include it and use uint8_t.


Andy Neil said:
And C99 did this for precisely the reasons that I've said.

Trouble is, many (most?) embedded 'C' compilers are not C99; Keil certainly isn't, and I think SDCC isn't

So, unfortunately, most of us do still have to create our own. :-(


When you need to create your own it might be wise to stick to the names C already defined in the standard.

I have no clue if Keil has a <stdint.h> but SDCC certainly has. Both compilers will never be C99 compliant, but one can try to get near if there is no reason not to.

Maarten

List of 24 messages in thread
TopicAuthorDate
^= , Checksum, Problem            01/01/70 00:00      
   Have you tried a simulator?            01/01/70 00:00      
      well,            01/01/70 00:00      
      OK            01/01/70 00:00      
   volatile?            01/01/70 00:00      
      volatile            01/01/70 00:00      
         using ICE ?            01/01/70 00:00      
            update code (working) and clarification            01/01/70 00:00      
               Style            01/01/70 00:00      
               Think about your variable types            01/01/70 00:00      
                  Thanks            01/01/70 00:00      
                     Magic numbers            01/01/70 00:00      
                        but don't be "oversmart"            01/01/70 00:00      
                           example?            01/01/70 00:00      
                           advantages            01/01/70 00:00      
                              the most often forgotten quality guarantee            01/01/70 00:00      
                     so, use structures!            01/01/70 00:00      
                        padding            01/01/70 00:00      
                   and             01/01/70 00:00      
                     Actual Output            01/01/70 00:00      
                     C99            01/01/70 00:00      
                        making up your own            01/01/70 00:00      
                           Names            01/01/70 00:00      
                     FYI - C99 Exact- & Minimum-width types            01/01/70 00:00      

Back to Subject List