Results 1 to 3 of 3

Thread: Why are SML binaries so large?

  1. #1
    Join Date
    Jul 2012
    Beans
    24

    Why are SML binaries so large?

    A question for any SML/experienced SML programmers:

    Why are SML binaries so huge? 181 kb for simple output file operations? Is this normal? Is there anybody else who programs in SML that notices this?

    I use MLton to compile my source into binaries.

  2. #2
    Join Date
    Oct 2007
    Beans
    1,914
    Distro
    Lubuntu 12.10 Quantal Quetzal

    Re: Why are SML binaries so large?

    Did you try running "strip" on your program? The binary may just contain tons of debug symbols.

  3. #3
    Join Date
    Jul 2012
    Beans
    24

    Re: Why are SML binaries so large?

    Quote Originally Posted by Zugzwang View Post
    Did you try running "strip" on your program? The binary may just contain tons of debug symbols.
    Running "strip -gd -o newfile" on my binary produces no tangible gains at all.

    This is not a complex program at all, as a matter of fact they are a few test lines. It is not even a real program. Yet MLton is compiling a binary that is 196 kb in size.

    By simple I mean:

    Code:
    fun form_list 0 L = L | form_list n L = form_list (n-1)(n::L);
    val L = form_list 20 nil;
    These single one-liners give me huge binaries.
    Last edited by eazar001; August 17th, 2012 at 09:15 PM. Reason: Clarification

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •