This is the mail archive of the
mailing list for the GCC project.
- From: Ian Lance Taylor <iant at google dot com>
- To: dhinesh someone <dhineshflames at gmail dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Mon, 3 Dec 2012 23:39:52 -0800
- Subject: Re:
- References: <CAM=QvqcYCATx8uWeMPJrh=Zgt6OMFYwy04n_w4uDe9K-a7oHGw@mail.gmail.com> <CAM=Qvqfr2FTbv1EJ2mZ+jq3FC3O33yoVriH309eUuKOfnjzZPQ@mail.gmail.com>
On Mon, Dec 3, 2012 at 11:14 PM, dhinesh someone
> 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