Re: [PATCH] define own version of PRIdPTR on platform where its not available

Ian Lynagh <[email protected]>
Newsgroups gmane.comp.lang.haskell.cvs.ghc
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.