The C modifier "static" has two completely different meanings:

- When used with a function, it makes the function private to the source file
  in which it is used. This allows you to re-use the function name in several
  source files without namespace conflicts.

- When used with a variable, it makes the variable use global storage instead
  of the call stack, thus the contents of the variable persist across function
  invocations in which the variable is defined. Persistence is equivalent to
  normal globals, in that both exist only during execution of the application
  from a standard launch code.

Neither use has anything to do with the location or RAM-residency of the object code.

Regards,

Jim Schram
3Com/Palm Computing
Partner Engineering

Reply via email to