[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [MiNT] gcc4 vs gcc2 crash "test case"
Vincent Rivière <vincent.riviere@freesbee.fr> writes:
> The file gendefs.c displays the offsets of the different memebers of the
> structures. It must be compiled with the target compiler in order to have
> the good offsets (they really vary among the platforms because of
> different alignement requirements). But it that case it can only be run on
> the target for generating the file quakedef68k.i. I don't know how a
> cross-compiler could determine the structure offsets et run time. A
> solution would be to provide the file quakedef68k.i with the sources, but
> it would be less safe.
Such offsets can easily be extracted from the assembler output of the
compiler, see the Linux kernel for a good example.
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."