7

我正在开发在 win32 上使用 Vala 的小型命令行实用程序。使用 vala 编译的程序依赖于以下 DLL

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

它们占用了 1500 KB 的空间。有没有办法减少这些依赖项的大小(除了用 UPX 等压缩它们)?我无法想象一个简单的 helloworld 之类的应用程序使用 glib 提供的所有功能。

谢谢!

4

1 回答 1

9

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.

于 2011-03-17T02:18:43.617 回答