From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18921 invoked by alias); 4 Dec 2012 07:40:01 -0000 Received: (qmail 18850 invoked by uid 22791); 4 Dec 2012 07:39:59 -0000 X-SWARE-Spam-Status: No, hits=-6.0 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail-ie0-f175.google.com (HELO mail-ie0-f175.google.com) (209.85.223.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 04 Dec 2012 07:39:53 +0000 Received: by mail-ie0-f175.google.com with SMTP id qd14so5784890ieb.20 for ; Mon, 03 Dec 2012 23:39:53 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:x-gm-message-state; bh=PyhJKmGodY0hXF/j+ctJ4pVHh+tKS1/JAMEFyxA2icI=; b=Htaeax1jy+7BEkIgx8Y4n81I5Qldqw7rGL29dG56EYCc1RuLH1ZNofJJFrzO+6AGfQ fHL6dx+c/bt4ZeYkNl+wa5iA38Q7qHJREzBQbNRCERUMdza3Nwq2mI+imUHQlcHNf2sw 6iTIQXTg2RnybbUWI3hzHlaK5878IHEb3urzXCmkrJaVG6xXP0yRRU539Yjvp1ZuXJv6 0VsyT/LE/ewdpC5cWvLP+PXpnZOd9Jq5xJM20cO45ccIWbJWhtWvMTJyxUhAU4GH3IgT sHATXMChoepjHdEaWyr0Ak6F/OPJs05wyR7T8oplMYE/OJORtkPEDJFLNOEAhp0a/SeD jjOQ== MIME-Version: 1.0 Received: by 10.50.213.40 with SMTP id np8mr1738665igc.56.1354606792902; Mon, 03 Dec 2012 23:39:52 -0800 (PST) Received: by 10.64.24.4 with HTTP; Mon, 3 Dec 2012 23:39:52 -0800 (PST) In-Reply-To: References: Date: Tue, 04 Dec 2012 07:40:00 -0000 Message-ID: Subject: Re: From: Ian Lance Taylor To: dhinesh someone Cc: gcc-help@gcc.gnu.org Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQmf8yy/eUNpH/+ISg5xPcNWR2FTh9BIyYfSpf7XpNVOmVZ+aiMhhafsjGYa8v9Lh41V2KMIFN3wPGTfF0vybS6rbnuEJ8xmFd3r+TY7ZDDEufAUz9WuiTNnj9rzQBwLUjKCk3gO341f6fdGVI9BBo7J/vUmfwCgS2l5tMhlIiNVROGZbINO5rJc/0AUTmEhSyQZ9ZGU X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2012-12/txt/msg00018.txt.bz2 On Mon, Dec 3, 2012 at 11:14 PM, dhinesh someone 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