[mercury-users] Generating small and fast binaries in Mercury
Julien Fischer
juliensf at csse.unimelb.edu.au
Fri Jul 6 14:33:58 AEST 2007
On Thu, 5 Jul 2007, Jonathan Morgan wrote:
> 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.
Actually, for Mercury on cygwin it is more a reflection of the fact that
we only currently support static linking.
Julien.
--------------------------------------------------------------------------
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