From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13366 invoked by alias); 28 Nov 2011 10:45:55 -0000 Received: (qmail 13326 invoked by uid 22791); 28 Nov 2011 10:45:52 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-gy0-f169.google.com (HELO mail-gy0-f169.google.com) (209.85.160.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 28 Nov 2011 10:45:14 +0000 Received: by ghrr17 with SMTP id r17so6126089ghr.0 for ; Mon, 28 Nov 2011 02:45:10 -0800 (PST) MIME-Version: 1.0 Received: by 10.182.45.6 with SMTP id i6mr12230835obm.3.1322477110007; Mon, 28 Nov 2011 02:45:10 -0800 (PST) Received: by 10.182.64.194 with HTTP; Mon, 28 Nov 2011 02:45:09 -0800 (PST) In-Reply-To: <4ED35FA6.3080603@redhat.com> References: <4ED35FA6.3080603@redhat.com> Date: Mon, 28 Nov 2011 10:45:00 -0000 Message-ID: Subject: Re: thiscall calling convention From: Kai Tietz To: Andrew Haley Cc: libffi-discuss@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact libffi-discuss-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libffi-discuss-owner@sourceware.org X-SW-Source: 2011/txt/msg00224.txt.bz2 2011/11/28 Andrew Haley : > On 11/26/2011 07:06 AM, Federico Omoto wrote: > >> Is there any plan to support the "thiscall" calling convention? > > Don't we already? =A0It's just the same as the usual convention, but > passes "this" as the first arg. =A0Or are we talking Visual C++ ? > > Andrew. The "thiscall" is a a separate calling-convention for 32-bit IA architecture, which is using just one register for passing first argument. So don't mix it with "fastcall", which is actual passing 2 arguments in registers. You are right, that this calling-convention is normally used only for C++ class-member functions on 32-bit IA Windows code. Kai