Making small haskell executables?

前端 未结 7 1457
野趣味
野趣味 2020-12-12 22:12

Are there any good ways to make small haskell executables? With ghc6 a simple hello world program seems to come to about 370kB (523kB before strip). Hello world in C is abou

7条回答
  •  既然无缘
    2020-12-12 22:57

    strip -p --strip-unneeded --remove-section=.comment -o your_executable_small your_executable
    

    also try looking at ldd -dr your_executable

提交回复
热议问题