Something is wrong in the space usage in  GHC-5.00 --interactive.

Is the interpreted code larger than compiled to object?

I try certain small project having the import dependency

                      Set_
                   / / |    \
                 / /  Categs  \
               /  |    |     \  \  
             /    |   Categs_  \  Common_
           /       \   |       / 
        IParse_       Prelude_  

- the edges oriented downwards:  Set_ imports Categs ...,

also some items are imported from  FiniteMap, List ...
After setting
 opts = -syslib data
        -fglasgow-exts -fallow-overlapping-instances 
        -fallow-undecidable-instances -fno-warn-overlapping-patterns 
        -fwarn-unused-binds -fwarn-unused-matches 
        -fwarn-unused-imports
and running
               ghc --make $opts Set_.hs

it appear  .o  and  .hi  files of the total size less than  800 Kb.

Then,          ghci $opts +RTS -M7m -RTS  Set_

loads the project sucessfully. Why  -M6m  does not suffice?

Further, after     rm *.hi *.o
                   ghci $opts +RTS -M24m -RTS  Set_

it is not enough  24 Mb  to load the interpreted code.
Something is wrong here. For  size(*.o + *.hi) < 1 Mb.

Maybe,  ghci  loads several copies of  Prelude_  ?

I am sending the archive to  Julian Seward <[EMAIL PROTECTED]>

only, in order not to fill e-mail list with a large letter.

-----------------
Serge Mechveliani
[EMAIL PROTECTED]










_______________________________________________
Glasgow-haskell-bugs mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to