From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.devel Subject: Re: Problem with library images on Windows (again) Date: Fri, 20 May 2005 18:31:54 +0200 Message-ID: References: <01c55ca5$Blat.v2.4$dd149500@zahav.net.il> <01c55d0c$Blat.v2.4$8d418800@zahav.net.il> <428DB8F3.3070108@gnu.org> <01c55d4a$Blat.v2.4$8e2e76e0@zahav.net.il> <428E065E.6040307@gnu.org> Reply-To: Juanma Barranquero NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1116606867 9658 80.91.229.2 (20 May 2005 16:34:27 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 20 May 2005 16:34:27 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri May 20 18:34:25 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DZAQA-0003Yb-2v for ged-emacs-devel@m.gmane.org; Fri, 20 May 2005 18:32:22 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DZAT2-0005hS-7G for ged-emacs-devel@m.gmane.org; Fri, 20 May 2005 12:35:20 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DZASf-0005e4-QD for emacs-devel@gnu.org; Fri, 20 May 2005 12:34:58 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DZASd-0005bg-BY for emacs-devel@gnu.org; Fri, 20 May 2005 12:34:55 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DZASc-0005Yf-CE for emacs-devel@gnu.org; Fri, 20 May 2005 12:34:54 -0400 Original-Received: from [64.233.184.196] (helo=wproxy.gmail.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DZAYD-00048T-AA for emacs-devel@gnu.org; Fri, 20 May 2005 12:40:41 -0400 Original-Received: by wproxy.gmail.com with SMTP id 50so1221382wri for ; Fri, 20 May 2005 09:31:55 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Teu1tYEzlhIfkHOCAy4eljlAgfsyjmfG8HDL3C6Y3ccQUuqxvEA29G5ACldzLsdUB36rsHUw6RnoJWeDC4ReuoUbeHLQdy0b3wJQbSO7lf5YbZq9+D5Bz0PuiBfB8+QLPhioJVxNiaL/le5bfIdCw8oNNxt3zDsK/hn4bBA1hvM= Original-Received: by 10.54.76.12 with SMTP id y12mr1897716wra; Fri, 20 May 2005 09:31:54 -0700 (PDT) Original-Received: by 10.54.82.6 with HTTP; Fri, 20 May 2005 09:31:54 -0700 (PDT) Original-To: emacs-devel@gnu.org In-Reply-To: <428E065E.6040307@gnu.org> Content-Disposition: inline X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:37398 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:37398 > Without looking at the disassembly, I'd guess that MinGW gcc and > non-optimised MSVC builds restore the stack pointer from a known > location regardless of the calling convention, which should always work. Optimized MSVC builds also restore the stack and frame pointers. But before that it tries to pop local registers saved on the stack. Bingo! My guess (but I've not compiled un-optimized to test it) is that non-optimized MSVC builds work because the compiler is reloading variables and/or being much less aggresive in caching values on registers. --=20 /L/e/k/t/u