Original message from "Diego Giagio" [EMAIL PROTECTED]:
> > 1. there are debugging requirements. Static functions do not expose entry 
> > points. 
> 
> Even for user-level code? 

If you are thinking there is a difference between kernel code & userland code, 
no.  Compilers compile code based upon the files & switches provided.  The only 
difference between static & non-static functions from a compiler's perspective 
is that non-static functions have the symbol representing their address made 
public in the resulting object file;  static functions do have an analogous 
symbol, but it is not made public.  Look at "nm" for more discussion:

http://www.openbsd.org/cgi-bin/man.cgi?query=nm&apropos=0&sektion=0&manpath=OpenBSD+Current&arch=i386&format=html

End result:  the keyword "static" simply plays games with what the linker 
receives as input.

Jim

Reply via email to