[Info-vax] nice for VMS
Arne Vajhøj
arne at vajhoej.dk
Tue Apr 14 19:52:25 EDT 2009
Bob Koehler wrote:
> In article <49e3a2d5$0$90266$14726298 at news.sunsite.dk>, =?ISO-8859-1?Q?Arne_Vajh=F8j?= <arne at vajhoej.dk> writes:
>> If it is Solaris/SPARC it is a problem even once a day.
>>
>> Because unaligned access crashes the program (segmentation fault).
>
> The last time I used the gcc compiler on Solaris it would not
> generate packed data. So I looked at the Sun compiler and it would.
> I assume that the Sun compiler generates the extra code needed to
> avoid unaligned accesses.
>
> I think the current version of the gnu compiler will also generate
> packed data and the extra code needed to make it work.
Would make sense.
But it is not always possible for the compiler to see that
it need to do something.
Call it "lying to the compiler" or "utilizing pointers
manipulation to the max".
Arne
More information about the Info-vax
mailing list