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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
09/23/08 13:50
Read: times


 
#158559 - C standard
Responding to: ???'s previous message
Be it known that a C compiler always initializes all variables to zero or other values as per the C language standard.

But the language standard only cares about global variables - not unused memory or stack.

Be it known that C51 compilers give the user access to the startup code to be able to change this behaviour. And some C51 compilers also allows variables to be placed in specific segments to inform the startup code to skip the initialization.

But, for any C compiler/linker/RTL to be able to initialize all variables to zero, the environment must know about what memory the chip has.

List of 19 messages in thread
TopicAuthorDate
are values stored in memory permanent ?            01/01/70 00:00      
   Depends on memory            01/01/70 00:00      
       I A P            01/01/70 00:00      
   could you help me with the IC            01/01/70 00:00      
      serial EEPROM            01/01/70 00:00      
         serial EEPROM with SPI also possible            01/01/70 00:00      
            I have my doubts...            01/01/70 00:00      
               I2C takes some reading to implement            01/01/70 00:00      
                  that's the point            01/01/70 00:00      
   Values in the Memory            01/01/70 00:00      
      a caveat            01/01/70 00:00      
         RE: a caveat            01/01/70 00:00      
            Any assemblers?            01/01/70 00:00      
            As long as others are all being strictly technical            01/01/70 00:00      
               C standard            01/01/70 00:00      
      Another caveat            01/01/70 00:00      
   sorry for the delay            01/01/70 00:00      
      which?            01/01/70 00:00      
    Maxim too has One-wire EEPROMs            01/01/70 00:00      

Back to Subject List