On Mon, Nov 05, 2012 at 11:52:43AM +0100, Gabor Greif wrote: > > I have a solution on the cross-compiler-alienless branch which does exactly > what you propose: feed the relevant headers into the cross-gcc, obtain > the offsets/sizes back > by 'nm', and massage stuff to obtain all as macros then feed those > into mkDerivedConstants.c.
I'll take a look, but I worry that we will have problems such as output varying with different versions of nm, output being different on Linux vs OS X vs Windows, and padding possibly meaning that we get the wrong values. > So, unless we want a very generic solution, where more than one cross > target is possible, > there is no need to abolish mkDerivedConstants.c. The current > architecture would do with > a few tweaks. Multiple targets wouldn't matter here: Whatever we do, if we want to support multiple targets we'll just run it separately for each target. Thanks Ian _______________________________________________ Cvs-ghc mailing list Cvs-ghc@haskell.org http://www.haskell.org/mailman/listinfo/cvs-ghc