Re: Isn't it time there was a standard align statement?



artifact.one@xxxxxxxxxxxxxx wrote:

It'd be really pleasant (in my opinion) if the next revision of
the C language actually allowed some portable control over data
alignment.

Alignment is not for the benefit of the compiler, but to allow the
compiler to use the destination machine.

--
"The most amazing achievement of the computer software industry
is its continuing cancellation of the steady and staggering
gains made by the computer hardware industry..." - Petroski


.



Relevant Pages

  • Re: Isnt it time there was a standard align statement?
    ... But if you're seeking "portable control," how portable is the ... alignment, a warning should be emitted and either the closest or ... fatal with compiler specific switches - and that's no business of the ... about such details it seems "portability" has already ceased to be ...
    (comp.lang.c)
  • Re: Isnt it time there was a standard align statement?
    ... C language actually allowed some portable control over data ... /* per member alignment (obviously padding before the first ... fatal with compiler specific switches - and that's no business of the ...
    (comp.lang.c)
  • Re: How does C cope if architecture doesnt address bytes?
    ... >>which the malloc() call occurs, figure out the type of the pointer which ... alignment in the implementation, rather than in either part of it. ... compiler and library are so strictly separate that there is no ... # The pointer returned if the allocation succeeds is suitably aligned so ...
    (comp.lang.c)
  • Re: register attribute
    ... The point of dynamic data structures is that the mass of ... I recall the alignment problem being reported in Byte ... > the programmer will know but the compiler won't. ...
    (comp.lang.fortran)
  • Re: Isnt it time there was a standard align statement?
    ... same method of specifying data alignment. ... The hardware is the same, ... fatal with compiler specific switches - and that's no business of the ... A vector math portability library. ...
    (comp.lang.c)