Vala: reducing the size of dependencies

余生颓废 提交于 2019-12-21 10:56:09

问题


I am developing small command line utilities using Vala on win32. Programs compiled using vala depend on the following DLLs

  • libgobject-2.0-0.dll
  • libgthread-2.0-0.dll
  • libglib-2.0-0.dll

They are taking up 1500 kbyes of space. Is there a way to reduce the size of these dependencies (besides compressing them with UPX and the like)? I can't imagine a simple helloworld like app using all the features provided by glib.

Thanks!


回答1:


If your vala source is fairly simple, you may be able to compile it in the posix profile

valac --profile posix hello.vala

Then your binary will not have any dependency outside of the standard C library. However, the posix profile may still be experimental.



来源:https://stackoverflow.com/questions/5332402/vala-reducing-the-size-of-dependencies

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!