From: apt Date: Thu, 6 Sep 2001 15:54:48 +0000 (+0000) Subject: [project @ 2001-09-06 15:54:48 by apt] X-Git-Tag: Approximately_9120_patches~1017 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=0a853c3e411f0ad3b4fe961571087be67390ae57;p=ghc-hetmet.git [project @ 2001-09-06 15:54:48 by apt] document -fext-core flag and set pointers to ext-core docs/tools (MERGE to STABLE pleeeeeease.) --- diff --git a/ghc/docs/users_guide/5-02-notes.sgml b/ghc/docs/users_guide/5-02-notes.sgml index 3d8042f..9e362dc 100644 --- a/ghc/docs/users_guide/5-02-notes.sgml +++ b/ghc/docs/users_guide/5-02-notes.sgml @@ -253,10 +253,11 @@ Emission of external Core format. The goal is for other tools to be able to grab the Core resulting from GHC's front end manglings and optimisations. Core format is - formally defined by the document An External - Representation of the GHC Core Language in the - GHC repository. We also have sample - tools for reading, writing and typechecking external Core. + formally defined by the document An External Representation for the GHC Core Language. + We also have sample + tools for reading, writing and typechecking external Core, + available in the source distribution directory /fptools/ghc/utils/ext-core. Ultimately we plan that Core files can also be read by GHC. The relevant flag is . diff --git a/ghc/docs/users_guide/flags.sgml b/ghc/docs/users_guide/flags.sgml index 198e287..21bf3a4 100644 --- a/ghc/docs/users_guide/flags.sgml +++ b/ghc/docs/users_guide/flags.sgml @@ -1270,6 +1270,33 @@ + + + External core file options (<xref linkend="ext-core">) + + + + + + Flag + Description + Static/Dynamic + Reverse + + + + + + Generate .hcr external Core files + static + - + + + + + + + Compiler debugging options (<xref linkend="options-debugging">) diff --git a/ghc/docs/users_guide/using.sgml b/ghc/docs/users_guide/using.sgml index e9cb214..e01be2b 100644 --- a/ghc/docs/users_guide/using.sgml +++ b/ghc/docs/users_guide/using.sgml @@ -1845,6 +1845,40 @@ statements or clauses. &runtime; + + + Generating External Core Files + + intermediate code generation + + GHC can dump its optimized intermediate code (said to be in “Core” format) + to a file as a side-effect of compilation. Core files, which are given the suffix + .hcr, can be read and processed by non-GHC back-end + tools. The Core format is formally described in An External Representation for the GHC Core Language, + and sample tools (in Haskell) + for manipulating Core files are available in the GHC source distribution + directory /fptools/ghc/utils/ext-core. + Note that the format of .hcr + files is different (though similar) to the Core output format generated + for debugging purposes (). + + + + + -fext-core + + -fext-core + + + Generate .hcr files. + + + + + + + &debug; &flags;