<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Eliot,&nbsp;<div>yes... I need it, because cocoa cog vm is compiled with:&nbsp;-fvisibility=hidden, and so I need to explicitly export functions/variables I want to use outside. I could change the visibility, but I'm not sure if this is a good idea.&nbsp;</div><div><br></div><div>Cheers,</div><div>Esteban</div><div><br><div><div>El 12/04/2011, a las 9:17p.m., Eliot Miranda escribió:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi Esteban,<div><br></div><div><div class="gmail_quote">On Tue, Apr 12, 2011 at 5:03 PM, Esteban Lorenzano <span dir="ltr">&lt;<a href="mailto:estebanlm@gmail.com">estebanlm@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; position: static; z-index: auto; ">
<br>
Hi,<br>
I'm trying to compile new IA32ABI plugin, who should work with new Threaded FFI.<br>
As everybody requested, I'm trying to compile this plugin as an external plugin, and for that reason I need variable<br>
<br>
sqInt inIOProcessEvents;<br>
<br>
to be<br>
<br>
EXPORT(sqInt) inIOProcessEvents;<br>
<br>
...how can I modify VMMaker to ensure this?<br></blockquote><div><br></div><div>Um, are you sure you need to. &nbsp;If you have a look at <a href="http://www.squeakvm.org/svn/squeak/branches/Cog">http://www.squeakvm.org/svn/squeak/branches/Cog</a> r2378 you'll see that &nbsp;inIOProcessEvents is declared in cointerpmt.c and that IA32ABI.c imports it via&nbsp;</div>
<div><br></div><div>src/plugins/IA32ABI/IA32ABI.c: &nbsp;{ extern int inIOProcessEvents; address = (sqInt)&amp;inIOProcessEvents; }</div><div><br></div><div>Doesn't that work?</div><div><br></div><div>best,</div><div>Eliot</div>
<div><br></div><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; position: static; z-index: auto; ">
I tried touching StackInterpreter&gt;&gt;#mustBeGlobal:, but that generates bad code on gcc3x-cointerpmt.c (it creates GIV(inIOProcessEvents) calls and that does not work)<br>
<br>
so... any idea?<br>
<br>
thanks,<br>
<font color="#888888">Esteban</font></blockquote></div><br></div>
</blockquote></div><br></div></body></html>