[Info-vax] nice for VMS

John Reagan johnrreagan at earthlink.net
Fri Apr 17 17:40:16 EDT 2009


"Bob Koehler" <koehler at eisner.nospam.encompasserve.org> wrote in message 
news:YxdvbjWiLBdf at eisner.encompasserve.org...
> In article <49e7cd7e$0$90272$14726298 at news.sunsite.dk>, 
> =?ISO-8859-1?Q?Arne_Vajh=F8j?= <arne at vajhoej.dk> writes:
>>
>> If we speak about C then I believe that type of pointer fun is
>> either undefined or implementation specific behavior, so there
>> would most certainly not be any point in complaining.
>
>   I don't have a copy of the standard handy, but I beleive in C that
>   behaviour is defined.  I would not be surprised to see a vendor
>   break it and would seriously avoid code depending on it.
>

For a pointer to an int, the compiler certainly assumes that the int is 
aligned on whatever boundary an int should be.  By default, the C compiler 
will assume that an int is on a longword boundary.

John 





More information about the Info-vax mailing list