[mercury-users] Generating small and fast binaries in Mercury
Jonathan Morgan
jonmmorgan at gmail.com
Thu Jul 5 21:10:15 AEST 2007
On 7/5/07, Alexsandro Soares <a_s_soares at yahoo.com.br> wrote:
> I compiled the fibonacci program in http://en.literateprograms.org/Fibonacci_numbers_(Mercury) using Cygwin. The binary size was 1715 Kbytes. Is there any way to generate a smaller binary? I have tried the compiler option --optimise-space, but nothing has changed.
My experience with Cygwin has been that a basic hello world
application takes up at least 1.6MB in asm_fast.gc, but only around
1MB in hlc.gc, and more in the various profiling and debugging grades.
You could try using hlc.gc, but it makes bigger files for some files
(for example, I have found that extras/xml is generally larger with
hlc.gc). Under Linux binaries are generally smaller because shared
libraries are used. I'm afraid that this is a reality of high-level
languages and libraries - they take up more space because a lot more
functionality is used.
Jon
--------------------------------------------------------------------------
mercury-users mailing list
Post messages to: mercury-users at csse.unimelb.edu.au
Administrative Queries: owner-mercury-users at csse.unimelb.edu.au
Subscriptions: mercury-users-request at csse.unimelb.edu.au
--------------------------------------------------------------------------
More information about the users
mailing list