From owner-freebsd-hackers@FreeBSD.ORG Mon Feb 21 19:01:36 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D72811065670 for ; Mon, 21 Feb 2011 19:01:36 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from shell0.rawbw.com (shell0.rawbw.com [198.144.192.45]) by mx1.freebsd.org (Postfix) with ESMTP id A9C3C8FC1F for ; Mon, 21 Feb 2011 19:01:36 +0000 (UTC) Received: from eagle.yuri.org (stunnel@localhost [127.0.0.1]) (authenticated bits=0) by shell0.rawbw.com (8.14.4/8.14.4) with ESMTP id p1LIXloI087289 for ; Mon, 21 Feb 2011 10:33:48 -0800 (PST) (envelope-from yuri@rawbw.com) Message-ID: <4D62B0B7.1060604@rawbw.com> Date: Mon, 21 Feb 2011 10:36:39 -0800 From: Yuri User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.1.16) Gecko/20101211 Thunderbird/3.0.11 MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: FreeBSD ABI? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Feb 2011 19:01:36 -0000 Where is it documented? Are there differences with the linux ABI? Particularly I am interested in stack alignment requirement. For example i386 Solaris, Linux and MacOS have 16 bit stack alignment for procedure calls. This is reflected in LLVM sources: if (isTargetDarwin() || isTargetLinux() || isTargetSolaris() || Is64Bit) stackAlignment = 16; But FreeBSD is excluded there. Is this a bug in LLVM which magically doesn't cause crashes or this is correct and FreeBSD doesn't have 16 bit alignment? Yuri