3 ms·
There are larger runtimes. # echo 'main = putStrLn "hi"' > hi.hs # ghc --make -optl=-static -optl=-pthread hi.hs -o hi [1 of 1] Compiling Main
by mitchty 11y ago
There are larger runtimes.
# echo 'main = putStrLn "hi"' > hi.hs
# ghc --make -optl=-static -optl=-pthread hi.hs -o hi
[1 of 1] Compiling Main ( hi.hs, hi.o )
Linking hi ...
# file hi
hi: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, not stripped
# du -hs hi
10.6M hi
# strip hi
# du -hs hi
4.4M hi
This is against musl libc by the way.