2014-09-25 10:12 GMT+03:00 Tony Mechelynck <[email protected]>:

> On 20/09/14 16:13, Ken Takata wrote:
>
>> Hi,
>>
>> Currently, +tcl/dyn is only supported on Windows.  Attached patch
>> enables dynamic loading of Tcl on Unix (including Cygwin).
>> I'm not sure that this feature is really needed, but I hope this is
>> useful especially for Cygwin.
>>
> [...]
>
> For people like me, who compile their own Vim, its usefulness would be
> mainly one of memory footprint: the Vim executable would be smaller, the
> Tcl libraries could be shared with other dynamically-linked programs, and
> they wouldn't have to be loaded at all if not used. At compile-time it is
> not much of a problem, since configure checks for the presence of the
> "development" packages required to compile each requested feature.
>

​I do not see why Vim executable should be smaller unless you used static
linking (note: +tcl does *not* mean static linking, it is regular (usually
dynamic) linking that is opposed to dynamic loading: with +tcl/dyn tcl
library is loaded using dlopen, with +tcl it is just loaded by ld-linux.so,
unless you supplied -static in CFLAGS at compile time). It may even be
slightly larger because with +tcl one does not need code that runs dlopen()
and loads symbols.

Though +python/dyn requires much more of such code: specifically table
containing symbols to load is two orders of magnitude larger compared to
those in tcl.



>
> However, for software distributors, such as (among others) the Linux
> distros and the makers of Cygwin, it would be really useful since it would
> allow distributing a Tcl-enabled Vim (compatible with the version of Tcl
> distributed in the same version of the distro) which would still run for
> users who decided to install Vim and/or gvim but not Tcl, and there would
> be no need to compile separately an equivalent "Vim without Tcl".
>
>
> Best regards,
> Tony.
> --
> If you are smart enough to know that you're not smart enough to be an
> Engineer, then you're in Business.
>
>
> --
> --
> You received this message from the "vim_dev" maillist.
> Do not top-post! Type your reply below the text you are replying to.
> For more information, visit http://www.vim.org/maillist.php
>
> --- You received this message because you are subscribed to the Google
> Groups "vim_dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui