alignment problem ?

Raffaele Sena raff at aromatic.com
Fri Jul 17 19:10:32 PDT 1998


> >It seems that Java long (long long) are expected to be aligned to 8 bytes,
> ...
> >Anybody can think of where I should look ?
> 
> OK, I got similar problem on m68k. You have to check
> resolveObjectFields in kaffe/kaffevm/classMethod.c and if
> alignment calculation in this function is funny, you can
> define new ALIGNMENT_OF_SIZE macro in 'md.h'.
> 
> You can check the result to set bp when getfield or putfield
> are executed (which are handled in 'kaffe/kaffevm/kaffe.def')
> by comparing,
> 	(void *)sp[0].v.taddr+(finfo.field)->info.boffset
> and the address of field in structure.
> 	

	I just find out about this ALIGNMENT_OF_SIZE (defined only
	for i386 ): and set it to the right value.

	Now I have some other problem (still while trying to read the
	class files), but at least I went a little bit further.

Thanks,
	Raffaele




More information about the kaffe mailing list