Re: Possible compiler bug with this simple program



On Aug 28, 12:56 am, Ludovic Brenta <ludo...@xxxxxxxxxxxxxxxxxx>
wrote:
I cannot test your program now but it seems to me that perhaps you
should specify the alignment of the arrays and Long_Floats. Also, it
might be a good idea to double-check that on the Intel Core 2, the
long floats are really 64 bits and not 80 bits wide. It could be that
the compiler got that wrong but I doubt it.

And that would look something like this?

for Long_Float'Alignment use 64;
for Real_Vector'Alignment use ???;

Jerry
.



Relevant Pages

  • Re: printf("%p ", (void *)0);
    ... > Antoine Leca wrote: ... >> I really read that a complex has the same alignment contraint as ... >> an array of two corresponding reals, as opposed for example to a ... post re Dan about an inference of him jumping from arrays to the element ...
    (comp.lang.c)
  • Re: Aligning Dynamic Arrays
    ... >>> It would be confusing if arrays are padded but not strings. ... > 1) 16-byte alignment is not suitable for all applications. ... New dynarray design: Dynarray is 16 aligned - good. ... The programmer should have a way to take advantage ...
    (borland.public.delphi.language.basm)
  • Re: Allocated aligned arrays
    ... the first element of each ... > both arrays have the same). ... You may specify alignment only for the first subtype of a base type. ... common multiple of the Alignments of its components, ...
    (comp.lang.ada)
  • Re: Derived data types vs computation time
    ... > deficiencies I encountered with derived types are typical, or compiler ... - Alignment: depending on the order of components and the specification, ... a structure of arrays usually will be best. ...
    (comp.lang.fortran)
  • Re: printf("%p ", (void *)0);
    ... > alignement requirements than their element types. ... >> in the standard indicating that arrays don't share the alignment ... >> restrictions of their element type. ... > floating point objects might have different alignment requirements ...
    (comp.lang.c)