<div class="gmail_quote">On Sun, Jan 2, 2011 at 10:39 AM, Gabriel Dos Reis <span dir="ltr"><<a href="mailto:gdr@integrable-solutions.net">gdr@integrable-solutions.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
On Sun, Jan 2, 2011 at 3:21 AM, Juan Jose Garcia-Ripoll<br>
<div class="im"><<a href="mailto:juanjose.garciaripoll@googlemail.com">juanjose.garciaripoll@googlemail.com</a>> wrote:<br>
</div><div class="im">> On Sat, Jan 1, 2011 at 10:01 PM, Gabriel Dos Reis<br>
> <<a href="mailto:gdr@integrable-solutions.net">gdr@integrable-solutions.net</a>> wrote:<br>
>><br>
>> > Extracting the information from there might be easier and more portable.<br>
>><br>
>> Yes, that is what I suggested in private conversion. In fact, all it<br>
>> takes is<br>
>> just link a dummy C file against the GMP library and look at the binary<br>
>> flavour of the program as indicated above. I suspect that the `file'<br>
>> utility will handle most cases.<br>
><br>
> The hardest point of the conversation, and one that people do not seem to<br>
> get, is that I have no idea how to do this which is written in the paragraph<br>
> and in the discussion before. Really, it makes the discussion very hard that<br>
> people do not realize that I have no idea how to get binary information from<br>
> an executable, or gather the binary mode from GMP just by linking a custom<br>
> program -- to begin with, it would be utterly impossible to link against<br>
> this library before having guessed the appropriate linker/compiler flags!<br>
<br>
</div>I have no idea what you mean by "linking against this library before<br>
having guessed the appropriate linker/compiler flags!". I don't recall<br>
I ever suggest that, and I really don't understand what you mean by that.<br>
<br>
-- Gaby<br>
</blockquote></div><div><br></div>The sentence "In fact, all it takes is just link a dummy C file against the GMP library and look at the binary flavour of the program as indicated above" implies that the dummy file has to be linked against GMP. That in turn requires knowing what type of library it is, whether it was built with long integers, small pointers, whatever.<div>
<br></div><div>This is what I meant by "guessing the compiler flags" and this is the problem that ECL faces when being built in a preinstalled environment: it can not even link against GMP without known the compiler / linker flags to do so.<br>
<br></div><div>Juanjo</div><div><br>-- <br>Instituto de Física Fundamental, CSIC<br>c/ Serrano, 113b, Madrid 28006 (Spain) <br><a href="http://juanjose.garciaripoll.googlepages.com" target="_blank">http://juanjose.garciaripoll.googlepages.com</a><br>
</div>