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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
01/01/05 17:10
Read: times


 
#84195 - Any unused functions in your program?
Responding to: ???'s previous message
The problem may not be in your routine if you have any uncalled functions in your program. The linker does not ignore uncalled functions - it cannot overlay them because it wouldn't know if it could, so the variables get added to the Data group space.

This was a huge problem for me when I tried to trim the fat out of Atmel's MP3 player software. Once I figured out what was going on, I had to create an if block that called all of the unused functions and make sure that it never evaluated to TRUE. That was a quick way to get aroung the problem without removing the code.

FYI, the latest version (7.1) of the Keil LX51 linker has a directive called REMOVEUNUSED, which will cause all unused functions to be ignored and not assigned any data address space. Why they couldn't add this feature to BL51 I don't know - it would be very useful.

List of 22 messages in thread
TopicAuthorDate
C Code t o Assembly            01/01/70 00:00      
   C to Asm            01/01/70 00:00      
   C Code t o Assembly            01/01/70 00:00      
      only one table            01/01/70 00:00      
   Need some more details            01/01/70 00:00      
      Not even true !            01/01/70 00:00      
      Answer is Wrong!!            01/01/70 00:00      
   Re : previous 3 replies and Paul            01/01/70 00:00      
      Previously on 8052.com            01/01/70 00:00      
      Overflow            01/01/70 00:00      
      just one array            01/01/70 00:00      
         too limited, Paul            01/01/70 00:00      
         Nothing to do with scope            01/01/70 00:00      
            Agreed            01/01/70 00:00      
   No success !            01/01/70 00:00      
   Re: Peter            01/01/70 00:00      
   to assembly            01/01/70 00:00      
   Example code            01/01/70 00:00      
   Any unused functions in your program?            01/01/70 00:00      
   query            01/01/70 00:00      
      Off-Topic - start a new thread            01/01/70 00:00      
         ... and use a _descriptive_ subject!            01/01/70 00:00      

Back to Subject List