#1478: Flag to get information about the compiler and RTS
--------------------------------+-------------------------------------------
    Reporter:  igloo            |        Owner:         
        Type:  feature request  |       Status:  new    
    Priority:  high             |    Milestone:  6.8    
   Component:  Compiler         |      Version:  6.6.1  
    Severity:  normal           |   Resolution:         
    Keywords:                   |   Difficulty:  Unknown
          Os:  Unknown          |     Testcase:         
Architecture:  Unknown          |  
--------------------------------+-------------------------------------------
Changes (by p_tanski):

  * cc:  dons [EMAIL PROTECTED] => dons [EMAIL PROTECTED]
         [EMAIL PROTECTED]

Old description:

> There should be a flag `+RTS -foo` that prints info including:
>  * The version of GHC used to compile the program
>  * The sort of RTS linked against
>
> There should also be a flag that can be given to the compiler that prints
> info including:
>  * Whether it has a NCG
>  * Whether or not it is registerised
>  * Whether it supports ghci/ghc -e
>  * What RTSs it has
>  * Whether it supports SMP
>
> Ideally this would all be easily machine-parseable.

New description:

 There should be a flag `+RTS -foo` that prints info including:
  * The version of GHC used to compile the program
  * The sort of RTS linked against
  * What (canonicalised) platform it was built for, i.e., powerpc-apple-
 darwin8.10.0

 There should also be a flag that can be given to the compiler that prints
 info including:
  * Whether it has a NCG
  * Whether or not it is registerised
  * Whether it supports ghci/ghc -e
  * What RTSs it has
  * Whether it supports SMP

 Ideally this would all be easily machine-parseable.

Comment:

 machine-parseable: would one-liner's do? For example:
 compiled_with: ghc-6.4.1
 platform: i386-unknown-mingw32
 rts_ways: t, p (use build system codes)
 registerised: YES (or 1)
 supports_NCG: YES (or 1)
 supports_SMP: YES (or 1)

 The idea is that all this can go directly from compiler/Makefile into
 Config.hs into the options.  Doesn't need to be after +RTS; might be an
 argument to ghc --version (no arg means as before; arg with parameter you
 want returns value like sysctl -n var on Darwin).

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1478>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to