From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4996 invoked by alias); 25 Mar 2009 07:35:48 -0000 Received: (qmail 4984 invoked by uid 22791); 25 Mar 2009 07:35:47 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-fx0-f165.google.com (HELO mail-fx0-f165.google.com) (209.85.220.165) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 25 Mar 2009 07:35:43 +0000 Received: by fxm9 with SMTP id 9so2478557fxm.8 for ; Wed, 25 Mar 2009 00:35:40 -0700 (PDT) MIME-Version: 1.0 Received: by 10.204.69.66 with SMTP id y2mr3249050bki.49.1237966540064; Wed, 25 Mar 2009 00:35:40 -0700 (PDT) Date: Wed, 25 Mar 2009 07:35:00 -0000 Message-ID: <1807a3db0903250035y5db7cf64qe68b43c362e468b@mail.gmail.com> Subject: How to understand the term 'unit' in 'unit-at-a-time'? From: QiangHuang To: gcc-help@gcc.gnu.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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: 2009-03/txt/msg00319.txt.bz2 Hi Everyone: GCC now has two styles for compilation, one for 'function-at-atime', and the other for 'unit-at-a-time'. The term 'unit' in this word refers to a whole source file ? or something else. Could someone make an exact definition about it? And How the compiler make the decision that if the functions are in the same compilation unit. Thanks a lot~