From owner-freebsd-hackers@FreeBSD.ORG Mon Feb 21 23:10:49 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 096A8106566C for ; Mon, 21 Feb 2011 23:10:49 +0000 (UTC) (envelope-from bf1783@googlemail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id BC8538FC1E for ; Mon, 21 Feb 2011 23:10:48 +0000 (UTC) Received: by ywf9 with SMTP id 9so411321ywf.13 for ; Mon, 21 Feb 2011 15:10:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:reply-to:date:message-id:subject :from:to:content-type; bh=mF6O4D5p4kjZ5h56gJ0exUPM7kHKyFvEfyjes/ekN2Q=; b=BA2zUhPOUk3sC81niND8fJEo4Z4tYuHwKuCFGRKIhmUm3Yg0jhqpfwaVQTTQzgPRv7 GX7ulRKbbVgQrLuT14QpMXhSlRR3uJkU1qspXL3VgMG6Fb6eYxSDcbzXgfYLo7i/RiOt d+1Jw1v7dBUetvxB8g/u7pET6JD+iRZFlvRiQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:reply-to:date:message-id:subject:from:to:content-type; b=GzwFgQ8T2sq46eTY+b9MBMQVkWDqCCiiYAmS8UPaxZ1nMtULA67i3/tUNZLp+odBN4 +FGbexisEyTe/2gyAGQnituEWhvsKgslUkvy08FA+d8VWbOIy4MXd2eZQLAStfPiKGoO H4P9eRNhZrbaqhpElx7NluhdjvGWSDcL6+xBk= MIME-Version: 1.0 Received: by 10.236.109.166 with SMTP id s26mr3568780yhg.76.1298328463723; Mon, 21 Feb 2011 14:47:43 -0800 (PST) Received: by 10.236.110.52 with HTTP; Mon, 21 Feb 2011 14:47:43 -0800 (PST) Date: Mon, 21 Feb 2011 17:47:43 -0500 Message-ID: From: "b. f." To: freebsd-hackers@FreeBSD.org, Roman Divacky , Yuri Content-Type: text/plain; charset=ISO-8859-1 Cc: Subject: Re: FreeBSD ABI? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: bf1783@gmail.com 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 23:10:49 -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? > > the alignment is specified in bytes but yes, I wonder too, what is the > stack alignment on freebsd on amd64/i386? > > Isn't it supposed to [1] conform to: http://www.sco.com/developers/devspecs/abi386-4.pdf http://www.x86-64.org/documentation/abi.pdf ? [1] See, for example: http://lists.freebsd.org/pipermail/freebsd-hackers/2011-January/034045.html http://www.freebsd.org/cgi/cvsweb.cgi/src/lib/csu/i386-elf/crt1_s.S http://lists.freebsd.org/pipermail/svn-src-head/2010-December/023065.html