Re: user-defined alignment in gfortran



glen herrmannsfeldt <gah@xxxxxxxxxxxxxxxx> schrieb:

Since a COMPLEX*16 variable is operated on, as far as Fortran is
concerned, as two eight byte real values it would seem in that
sense that eight byte alignment would be good enough. (It would
be interesting to have a processor with complex operations.)

Mm, why? If I have a COMPLEX*16 variable placed somwhere with eight byte
alignment, there can be two cases: It is 16 Byte aligned or not, in
that case only the second part of the variable falls together wih a 16
bit boundary.

Maybe I didn't say it quite right.

No hardware that I know of has instruction that operate on
complex data. There is no complex add or complex multiply
instruction. Operations are done on separate real and imaginary
parts using ordinary floating point instructions.

I think this is rather irrelevant for my problem. On the Cell-BE
architecture DMA transfers have to be 16 byte aligned. So I want my
Array or whatever I allocate in Fortran 16 byte aligned so that I can
DMA-transfer it to the Cell's SPU's later.

Regards,
Timo
.



Relevant Pages

  • Re: Need to execute an assembly instruction from C
    ... I need to continue executing as if nothing happened. ... easiest way of doing that would be to turn off alignment exceptions, ... a hardware breakpoint at the instruction+4, jump back to the instruction, ...
    (comp.sys.arm)
  • Re: Need to execute an assembly instruction from C
    ... I need to continue executing as if nothing happened. ... easiest way of doing that would be to turn off alignment exceptions, ... a hardware breakpoint at the instruction+4, jump back to the instruction, ...
    (comp.sys.arm)
  • Re: how to align instructions?
    ... by the assembler when execute the ".align" directive). ... Let's say you want to align all branch targets to an alignment ... take care that the address of the first instruction in this ... With 32-bit instructions sizes and 64-bit alignment the problem doesn't seem ...
    (comp.programming)
  • Re: how to align instructions?
    ... With 32-bit instructions sizes and 64-bit alignment the problem ... If you mean that I could stick a NOP after jge ... Adding the NOPs after the JGE ... instruction would mean two exits. ...
    (comp.programming)
  • Re: Menu Button
    ... "S Shulman" schrieb: ... If you want to be able to set the alignment of the context menu, ...
    (microsoft.public.dotnet.languages.vb)