X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fcompiler%2FREADME;h=ca619cdde0d29e86f37f0d198ddf1b66da6b287c;hb=23c94851fb2c98d345d913d35a5a12bbc3a346bd;hp=0830fb3d4ef7adc0b2314705ba833d9fa835bf54;hpb=e7d21ee4f8ac907665a7e170c71d59e13a01da09;p=ghc-hetmet.git diff --git a/ghc/compiler/README b/ghc/compiler/README index 0830fb3..ca619cd 100644 --- a/ghc/compiler/README +++ b/ghc/compiler/README @@ -9,37 +9,3 @@ includes some tests that we use to make sure we're not going backwards. The subdirs of the test directory "match" the subdirs of the main source directory; e.g., the desugarer is in subdir deSugar/, and the tests for the desugarer are in tests/deSugar/. - -The main information about how the compiler goes together is in -./Jmakefile. The list of modules under "FRONTSRCS_LHS =", -"TCSRCS_LHS =", etc., should show the basic organization of the (many) -modules. - -TO ADD A MODULE TO THE COMPILER: - -0. Be familiar with "How to add an optimisation pass..." (in - ghc/docs/add_to_compiler). - -1. Create an appropriately-named module in an appropriate subdirectory. - -2. Edit the Jmakefile: - - * If you created a new subdirectory for the module, add that - directory to the SUBDIR_LIST and DASH_I_SUBDIR_LIST lists. - - * Add your module to one of the lists of modules in the compiler; - e.g., TCSRCS_LHS. - -3. Re-make the Makefile: "make Makefile" - -4. Re-make the automatically-generated dependencies: "make depend". - -Your new module is now "wired in" and you may proceed normally... - - % make - -(see also: day-to-day make-worlding section of developer's guide, near -the end) - -5. If you want to set up automagically (re-)runnable tests, follow - the suggests in the file tests/README.