[Haskell] GHC: Setting default +RTS options at compile time?

Simon Peyton-Jones simonpj at microsoft.com
Fri Mar 18 11:59:51 EST 2005


[Redirecting to GHC users, which is the right place for GHC related
questions.]

| Is there any way to specify at compile/link time default options for
GHC
| program +RTS options?

No.  This is a long-standing feature request.  It makes perfect sense,
but needs someone to design and implement it.  So far not enough people
have yelled loudly enough for us to do it.  Any volunteers?

Simon

| <aside>
| Why do I want this?  I'm using GHC to write a program that will be
used by
| non-comp uting people to preprocess some data in conjunction with an
18Mb
| database file.  To load the database into a Data.Map value requires
more
| than GHC's default 256Mb of heap, and I'd like to increase the
program's
| default heap size, rather than telling users to use the +RTS -M100M
option,
| as its one less thing to get wrong.  There are of course other
possible
| solutions, but in this case specifying a default heap size at compile
time
| seems to be the most natural.
| </aside>


More information about the Glasgow-haskell-users mailing list