[Vm-dev] compiling IA32ABI for cocoa cog

Igor Stasenko siguctua at gmail.com
Wed Apr 13 08:09:03 UTC 2011


On 13 April 2011 05:05, Eliot Miranda <eliot.miranda at gmail.com> wrote:
>
> Its an OK compromise.  It used to work fine.  The VM keeps those symbols it doesn't want to export to plugins private (static) and makes public only those it wants them to see.  So having public symbols visible is fine.  It isn't as clean with Cog.  There is a broad API used to interconnect the CoInterpreter and the Cogit, lots of which plugins have no business seeing.  But then plugins don't access them, and in fact it might be useful if some could (e.g. NativeBoost).  The problems come when there are conflicts between VM symbols and those in arbitrary code.  But this is worrying about an unlikely scenario that we can deal with when it arrives.  Use -fvisibility=default until you get problems.  If it ain't broke, don't fix it.


IMO hidden is better, because it forcing you to export symbols
explicitly, so you are in finer control what happens.
And then helps to see dependency problems at static link stage, not at
dynamic link stage during run time.

> best
> Eliot
>

-- 
Best regards,
Igor Stasenko AKA sig.


More information about the Vm-dev mailing list