From mint-bounce@lists.fishpool.fi Tue Apr 13 09:14:28 2010 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=LL3MQKjhBF6XmLcfRPxRgDQigL5Gd8uSsre9ZJ6KK3c=; b=VLt/nNVCRPgGxs6EtBJurTXvugFKdA3Cp1zDkviqEiJ+Wow/IUbfMiJye085oARykK OgX+yJnUZEDSQvrYv0nMzt0L1C2DxyT3yXzdg6PCR7cDB0d5yRwLUziJAyspRzBq2f6F LD596RMWypynOkaZ8h9gY3UXZbpRdVEqr6m9Y= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; b=oqqYseyZsX2Biy1v1oaKXIqgezupwejjDtsTjG/WPc8Q6sFSdwFD787hMRTXs86uA3 GDcpZ0gYIgE9cFdcA6nj1iDLCrHb9e1YXxwkvShqqeN5qAVCreS+wVE5MjZoNbSoYwJq kVGIz9MqeAenY3K79ScNJbEmm8gokj48WaZAI= Message-ID: <4BC46D36.8010400@freesbee.fr> Date: Tue, 13 Apr 2010 15:10:14 +0200 From: =?ISO-8859-1?Q?Vincent_Rivi=E8re?= User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: mint@lists.fishpool.fi Subject: Re: [MiNT] binutils ld enhancement ? References: <1270933424.10459.3.camel@jetpack.demon.co.uk> <4BC1948B.9020704@freesbee.fr> <1271001595.16679.1.camel@jetpack.demon.co.uk> <4BC1F857.2020506@freesbee.fr> <1271160069.16679.47.camel@jetpack.demon.co.uk> In-Reply-To: <1271160069.16679.47.camel@jetpack.demon.co.uk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-ecartis-version: Ecartis v1.0.0 Sender: mint-bounce@lists.fishpool.fi Errors-to: mint-bounce@lists.fishpool.fi X-original-sender: vincent.riviere@freesbee.fr Precedence: bulk List-help: List-unsubscribe: List-Id: X-List-ID: List-subscribe: List-owner: List-post: Alan Hourihane wrote: > I've just added a new environment variable to mintlib which allows the > runtime stacksize to be overridden. > > Use STACKSIZE= This is very clever. Since the ideal value of the processs stack size may vary among the usages, it makes sense to be able to change it when invoking a program, without modifying it. Your change allows that. Thus, if I'm not wrong, the actual stack size of a process is now the first match of the following possibilities: 1) the value of the environment variable STACKSIZE, if it is set. 2) the value hardcoded into the executable, if it is set. 3) the default value hardcoded in the MiNTLib. This sounds sensible. -- Vincent Rivière