[prev in list] [next in list] [prev in thread] [next in thread]
List: gcc-fortran
Subject: Re: How to force 16-byte alignment with gfortran?
From: Timo Schneider <timo.schneider () s2004 ! tu-chemnitz ! de>
Date: 2007-05-30 7:33:22
Message-ID: 20070530073322.GA10777 () dopey ! perlplexity ! org
[Download RAW message or body]
On Wed, May 30, 2007 at 01:39:22AM +0200, FX Coudert wrote:
> [cross-posting to gcc-help, we may have other ideas and opinions there]
>
> >Is there a way to tell gfortran to allign all variables and
> >datastructures
> >(like arrays) at 16-byte boundaries? Not only the static ones but even
> >if I do an ALLOCATE(A(N,M)) I want the start of the array to be on an
> >adress whichs last 4 bits are "0000"?
>
> gfortran translates ALLOCATE calls using malloc(), so if your system
> malloc() returns correctly aligned memory, it should work out-of-the-
> box. See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24261 for some
> discussion about this.
Ok, thanks. But what's about statically declared variables? How can I
influence their alignment?
Regards,
Timo
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic