dotgnu-pnet
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Pnet-developers] ILTypeIdentical


From: Simon Posnjak
Subject: Re: [Pnet-developers] ILTypeIdentical
Date: Mon, 25 Oct 2004 09:47:17 +0200

V sob, 23.10.2004 ob 11:23 je Rhys Weatherley napisal(a):
> Hi Simon,
> 
> If your libc has the "memalign" function, you could try modifying "ILMalloc" 
> (pnet/support/allocate.c) to use that instead of "malloc".  This may be 
> quicker than fiddling with the contents of "il_types.h".  If not, I can send 
> you some scary code to replace all of "allocate.c" to guarantee alignment.
The problem I am seeing is that the memory allocated by malloc is
aligned, but the layout of the struct in the allocated memory is not
aligned. The structs are *packed* on CRIS and using union and struct
makes it impossible to make all fields of that struct/union to align to
4 (or 2^n). So to fix this it will not help if I change the malloc,
because this problem is related to how CRIS gcc does struct/union
layout.

Also is there any other part of pnet, that uses this kind of hack...

                        Regards Simon






reply via email to

[Prev in Thread] Current Thread [Next in Thread]