This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re:


On Mon, Dec 3, 2012 at 11:14 PM, dhinesh someone
<dhineshflames@gmail.com> wrote:
> what are the properties of static function in c in gcc compiler?
> how linker does linking between library and  source code...
> what is mean by static and dynamic linking

These questions have nothing to do with GCC.  This is not the best
place to ask them.

The properties of "static function in c" are the same for GCC as they
are for any other C compiler.  A static function is not visible
outside the compilation unit in which it is defined.

The linker does not link source code, it links object files.  For
details on how linkers work, see the series of blog entries starting
at http://www.airs.com/blog/archives/38 .  That series also covers
dynamic linking.

Ian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]