delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Date: | Sun, 29 Dec 2002 11:38:43 +0100 |
Message-ID: | <3E00A2010000CE2A@mail-8.tiscalinet.it> |
In-Reply-To: | <002701c2aada$874d2e90$fe47893e@pomello> |
From: | fabrizio_ge-wolit AT tiscali DOT it |
Subject: | Re: Strange behaviour of gcc |
To: | "Max Bowsher" <maxb AT ukf DOT net>, cygwin AT cygwin DOT com |
MIME-Version: | 1.0 |
X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id gBTKFU218910 |
>-- Messaggio Originale -- >From: "Max Bowsher" <maxb AT ukf DOT net> >To: <fabrizio_ge-wolit AT tiscali DOT it>, > <cygwin AT cygwin DOT com> >Subject: Re: Strange behaviour of gcc >Date: Mon, 23 Dec 2002 23:25:00 -0000 > > >fabrizio_ge-wolit AT tiscali DOT it wrote: >> Can somebody explain why gcc (version 3.2 20020927) on Cygwin does >> this? > >Yes. Gcc's optimizer chose to make a large amount of local variable >allocation into an alloca call. > >Does it matter? For what I'm trying to do, it does. I would like to build a DLL which is not linked to the C runtime library in order to have a smaller file (a trick copied from Winamp plug-ins), and I don't mind about sub-optimal performance. The executable dlopen()s the DLL and provides some callbacks to it. If the DLL is linked to CRT, it is 20KB long. If it is not, it is 8KB long (but obviously it does not have alloca available). Is there a gcc option to build code without the call to alloca? __________________________________________________________________ Tiscali ADSL: abbonati entro il 31 gennaio. Non paghi l'attivazione. Non paghi il primo mese. http://www.tiscali.it/adsl -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |