Re: user-defined alignment in gfortran



Steven G. Kargl <kargl@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> schrieb:
In article <slrnf5oclv.au0.timos@xxxxxxxxxxxxxxxx>,
Timo Schneider <timos@xxxxxxxxxxxxxxx> writes:
Tim Prince <timothyprince@xxxxxxxxxxxxx> schrieb:

When you have support for 16-byte alignment built into binutils, the
gcc/gfortran option -mpreferred-stack-boundary=4 [this means 2**4]
should accomplish what you requested.

I don't think so. I don't want to align the stack but data on the heap.

I don't see how gfortran will distinguish between stack and heap
alignments; perhaps your question is more complicated than you have told us.

If so I don't know why. gcc supports __attribute__((aligned(16))) why
shouldn't gfortran have something similar?
Unfortunately most people try to tell me why I don't need alignment, but
I really do need it for the DMA-Transfer stuff on Cell...

You're asking for info of in the wrong forum. Try posting to
gcc at gcc.gnu.org and fortran at gcc.gnu.org.

Ah, thats a good idea. Thanks!

Regards,
Timo
.



Relevant Pages

  • Re: user-defined alignment in gfortran
    ... I don't want to align the stack but data on the heap. ... I don't see how gfortran will distinguish between stack and heap ... alignments; perhaps your question is more complicated than you have told us. ...
    (comp.lang.fortran)
  • Re: user-defined alignment in gfortran
    ... I don't want to align the stack but data on the heap. ... I don't see how gfortran will distinguish between stack and heap ... alignments; perhaps your question is more complicated than you have told us. ...
    (comp.lang.fortran)
  • Re: How does managed code work?
    ... Does it work the same way as the native stack with a frame pointer that is the head of a linked list of stack frames where each time we enter a function we create a new stack frame in which new variables are pushed and each time we exit a function the entire stack frame is popped? ... Can someone point me to a discussion of the managed heap? ... How does it prevent memory leaks that occur in COM when two objects reference each other and keep the others reference count nonzero? ... Because objects don't go out of scope, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Groovy (war Re: [PROST]Re: CDC Plugin fuer Eclipse)
    ... Warum müsste man continuations erlauben Stackvariablen in den Heap zu verschieben? ... Ein activation record speichert die Parameter und lokalen Variablen der Funktion und eine Information, ... Da diese activation records klassischerweise auf einem Stack verwaltet werden, kann man hier Stackspace sparen - Endrekursion ist damit genauso effizient wie eine klassische Iteration mit einem Sprung. ...
    (de.comp.lang.java)
  • Re: Please Explain where will the struct be stored if it is declared inside the Class
    ... forget about structs for a second. ... can be stored either on the stack, or on the heap. ... First, think about the stack. ... A struct would act exactly the same as any of these decimals and ints. ...
    (microsoft.public.dotnet.languages.csharp)