Issue 505 in xmonad: Strip the executable file created during recompilation

Status: New Owner: ---- New issue 505 by jach...@gmail.com: Strip the executable file created during recompilation http://code.google.com/p/xmonad/issues/detail?id=505 What steps will reproduce the problem? 1. recompile xmonad I think it's a good idea to strip the executable file generated during recompilation to make it even more lightweight. My xmonad version is 0.10 I believe the following code is pretty self-explanatory: $ cd $ xmonad --recompile $ ls --size .xmonad/xmonad-x86_64-linux 2552 .xmonad/xmonad-x86_64-linux $ file .xmonad/xmonad-x86_64-linux .xmonad/xmonad-x86_64-linux: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, BuildID[sha1]=0xfec31cee9b5541ce3310171ffa299d0282a5cfb8, not stripped $ strip .xmonad/xmonad-x86_64-linux $ ls --size .xmonad/xmonad-x86_64-linux 1648 .xmonad/xmonad-x86_64-linux $ file .xmonad/xmonad-x86_64-linux .xmonad/xmonad-x86_64-linux: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, BuildID[sha1]=0xfec31cee9b5541ce3310171ffa299d0282a5cfb8, stripped

Comment #1 on issue 505 by daniel.w...@gmail.com: Strip the executable file created during recompilation http://code.google.com/p/xmonad/issues/detail?id=505 I mean, I'm not against a patch that does this, but... you have to have GHC installed (250MB) to recompile xmonad. Is that last 250KB the important place to do space optimization?

Comment #2 on issue 505 by jach...@gmail.com: Strip the executable file created during recompilation http://code.google.com/p/xmonad/issues/detail?id=505 Hehe, you're right. The few KBs are not important. But I thought an ELF file runs somewhat faster, if there are no useless symbols. But maybe I'm mistaken, I'm not an expert on this topic :)

Comment #3 on issue 505 by daniel.w...@gmail.com: Strip the executable file created during recompilation http://code.google.com/p/xmonad/issues/detail?id=505 I hadn't heard of that. A bit of searching the web seems to suggest that modern Linux is smart enough that stripping doesn't improve speed. http://fixunix.com/unix/89227-stripping-unix-executable-doesnt-make-faster.h...

Comment #4 on issue 505 by allber...@gmail.com: Strip the executable file created during recompilation http://code.google.com/p/xmonad/issues/detail?id=505 The extra-symbols thing would matter only if debugging information were in STABS format like in old BSDs... not even the BSDs do that any more, because ELF lets you put them in sections that can be completely ignored at runtime (with old a.out format, the only place you could put extra information was the symbol table).
participants (1)
-
codesite-noreply@google.com