From owner-freebsd-hackers@FreeBSD.ORG Fri Jan 14 12:11:52 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 7AD21106564A for ; Fri, 14 Jan 2011 12:11:52 +0000 (UTC) (envelope-from rysto32@gmail.com) Received: from mail-ey0-f182.google.com (mail-ey0-f182.google.com [209.85.215.182]) by mx1.freebsd.org (Postfix) with ESMTP id 0DD328FC0A for ; Fri, 14 Jan 2011 12:11:51 +0000 (UTC) Received: by eyf6 with SMTP id 6so1343633eyf.13 for ; Fri, 14 Jan 2011 04:11:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=IS7KjaKvbKqkmjf3TolEIduVpKRI9Au+IdiplPzqV3w=; b=Xd06+3fRRpnyJk2OSjNCQzg1dknr1a5R0wn1H+2zf/qLSOJ/oT3joDIoMSungoH5d1 L01Y8NKwy1dS8r9fUSSiDTdww2SXid4smeikLFCP8aobIMqsrXWaXdsLlX//Gqxw3MQ5 t+9RW8qdDLwu7CCGd1EfKvOfFPL8Q2mq8mCLE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=VPOnxVc69cdyCVirNBqUkHQ059bY6muabU8T8cc5AtTQRk2pJrFMPRpMBKNPdcbZLI h02ZL9IZfuXLkbOn+3O3B2+WOb10v4GJShpJ7L0pgHEWskEgJBVNmrSpk1qr4gosIQqA fWcS8TgP+Xa5FIWQHDTGOeBkEcNOn0agZx+Fc= MIME-Version: 1.0 Received: by 10.213.32.193 with SMTP id e1mr668217ebd.74.1295007110821; Fri, 14 Jan 2011 04:11:50 -0800 (PST) Received: by 10.213.22.14 with HTTP; Fri, 14 Jan 2011 04:11:50 -0800 (PST) In-Reply-To: References: <4D2F8BFE.9070607@bsdimp.com> Date: Fri, 14 Jan 2011 07:11:50 -0500 Message-ID: From: Ryan Stone To: Peter Blok Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org Subject: Re: What does the FreeBSD/i386 ABI say about stack alignment? 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: Fri, 14 Jan 2011 12:11:52 -0000 On Fri, Jan 14, 2011 at 3:52 AM, Peter Blok wrote: > Hi, > > I=B9m probably missing something but if you require a stack variable to b= e > aligned why not use a type attribute like __attribute__ ((aligned (8))) > > Peter In my case I had no stack variable that required alignment. gcc issued some movdqa instructions in order to initialize a memory region on the stack to all-zeros.