Memo Ypsilon

IT, dev, CS

Home Archives
2017-01-10
Haskell

Reduce haskell binary

To reduce the binary compiled by haskell compiler one can use some methods.

First, use dynamic linking:

1
ghc -dynamic -o hello hello.hs

Second, remove all trash (e.g., with strip):

1
strip -p --strip-unneeded --remove-section=.comment -o hello-small hello

Third, compress executable binary (e.g., with UPX) (see man upx for more options)

1
upx --brute -o hello-super-small hello-small
Share Comments
  • binary
  • haskell
  • size
Newer
GHCi multiline
Older
EcmaScript module syntax

Categories

  • Admin
  • Fonts
  • Git
  • Haskell
  • JavaScript
  • Web Development

Tags

  • Authentication
  • EcmaScript
  • GHCi
  • GPG
  • Google
  • JavaScript
  • Oauth
  • admin
  • azery fonts
  • binary
  • cert
  • certificate
  • console
  • dev
  • dns
  • export
  • font
  • frontend
  • git
  • haskell
  • https
  • i18n
  • import
  • letsencrypt
  • linux
  • mint
  • module
  • signature
  • size
  • ssh
  • tmux

Tag Cloud

Authentication EcmaScript GHCi GPG Google JavaScript Oauth admin azery fonts binary cert certificate console dev dns export font frontend git haskell https i18n import letsencrypt linux mint module signature size ssh tmux

Archives

  • April 2020
  • January 2018
  • October 2017
  • March 2017
  • January 2017
  • December 2016
  • August 2016
  • April 2016

Recent Posts

  • Run haskell program in watch mode for development
  • Declare functions with type in ghci
  • SSH config example
  • GPG signed commits on git
  • tmux keys
© 2020 Eldar Aliyev
Powered by Hexo
Home Archives