Currently I use Linux as host and win32 as target, but I also plan Android later.<div>If I understand, the cross compile process you speak of creates a bootstrap compiler matching the target's settings. So I am supposed to build my own and compile my shared lib using it, right ?</div>
<div><br><div class="gmail_quote">On Tue, May 17, 2011 at 2:42 PM, Juan Jose Garcia-Ripoll <span dir="ltr"><<a href="mailto:juanjose.garciaripoll@googlemail.com">juanjose.garciaripoll@googlemail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div></div><div class="h5">On Tue, May 17, 2011 at 11:32 AM, Denis Martinez <span dir="ltr"><<a href="mailto:deuns.martinez@gmail.com" target="_blank">deuns.martinez@gmail.com</a>></span> wrote:<br>
<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

I am attempting to create a shared library out of lsp files, in a cross-compiler situation where I use the host ecl with a foreign compiler. I guess I have two options:<div>1) make ecl -compile use the cross-compiler</div>



<div>2) extract .c, .h out of lsp files and compile the files normally</div><div>At first look 1) is not possible and 2) appears doable, but I have not yet found how to do it. Can someone explain ?<br clear="all"></div></blockquote>


</div><br></div></div>Is the C code compiled for the same platform ECL runs in, or for a different one?<br><br>The problem right now is that ECL's compiler uses information that is hardcoded in the runtime to take decisions about the generated C code. Thus, the code generated for a given platform can only be reliably produced by an ECL built for that same platform, which is why the possibility of cross-compiling ECL exists.<br>


<br>If the target compiler and the original ECL are built for the operating system then you do not need to go through such complicated paths and it typically suffices to change the compiler name c::*cc* and other special variables which are internal to the compiler (see cmp/cmpdefs.lsp to find out the names)<br>


<br>Juanjo<br><font color="#888888"><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>



</font></blockquote></div><br></div>