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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
03/06/01 22:57
Read: times


 
#9800 - RE: Explain advantages of using static func.
In the '51 world, globals also have problems:

If data is global, it must exist (ie, take storage) for the whole duration of the program; with limited storage, this is bad.
By using local data, you give the compiler the chance to re-use the space.

Using local variables can give your compiler a better chance to optimise.

Also, tools for "smaller" processors tend to have more restrictive limits; eg, if your linker has only a limited number of public symbols, be sure to use 'static' functions & local variables wherever possible.

List of 11 messages in thread
TopicAuthorDate
Explain advantages of using static func.            01/01/70 00:00      
RE: Explain advantages of using static func.            01/01/70 00:00      
RE: Explain advantages of using static func.            01/01/70 00:00      
RE: Explain advantages of using static func.            01/01/70 00:00      
RE: Explain advantages of using static func.            01/01/70 00:00      
RE: Explain advantages of using static func.            01/01/70 00:00      
RE: Explain advantages of using static func.            01/01/70 00:00      
RE: Explain advantages of using static func.            01/01/70 00:00      
RE: Explain advantages of using static func.            01/01/70 00:00      
RE: Explain advantages of using static func.            01/01/70 00:00      
Thank you!            01/01/70 00:00      

Back to Subject List