X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: Matthew Woehlke <mw_triad@users.sourceforge.net>
Subject:  Re: Eliminating -mno-cygwin from gcc.
Date:  Tue, 06 Feb 2007 12:11:06 -0600
Lines: 18
Message-ID: <eqagbr$f3k$1@sea.gmane.org>
References:  <020d01c748b4$62d8b170$2e08a8c0@CAM.ARTIMI.COM>   <45C69F2F.2060300@users.sourceforge.net> <Pine.GSO.4.63.0702052348340.28605@access1.cims.nyu.edu>  <eqacah$tma$1@sea.gmane.org> <Pine.GSO.4.63.0702061215200.28605@access1.cims.nyu.edu>
Mime-Version:  1.0
Content-Type:  text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding:  7bit
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.9) Gecko/20061206 Thunderbird/1.5.0.9 Mnenhy/0.7.4.0
In-Reply-To: <Pine.GSO.4.63.0702061215200.28605@access1.cims.nyu.edu>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Igor Peshansky wrote:
> On Tue, 6 Feb 2007, Matthew Woehlke wrote:
>> ...but doesn't the script itself involve a fork? On a big project, with
>> an extra fork for every source file, that can still add up.
> 
> Don't forget that invoking the gcc executable from make or the shell
> involves a fork anyway.  If gcc is 'exec'ed from the script, there will
> only be the fork that invokes the shell, versus the fork that would have
> invoked the executable.

Hmm, ok, I was never convinced that bash's exec builtin didn't still 
involve fork()ing. Now I am (having taken a closer look at it).

-- 
Matthew
HIPPOS feel unacknowledged. HIPPOS get angry.
 > PRAISE HIPPOS
HIPPOS seem somewhat placated.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

