Glasgow Haskell Compiler User's Guide
Navigation
index
next
|
previous
|
GHC 8.6.4 User's Guide
»
Previous topic
8. Using runghc
Next topic
9.1. Using GHC
This Page
Show Source
Quick search
Enter search terms or a module, class or function name.
9. Using GHC
¶
9.1. Using GHC
9.1.1. Getting started: compiling programs
9.1.2. Options overview
9.1.2.1. Command-line arguments
9.1.2.2. Command line options in source files
9.1.2.3. Setting options in GHCi
9.1.3. Static, Dynamic, and Mode options
9.1.4. Meaningful file suffixes
9.1.5. Modes of operation
9.1.5.1. Using
ghc
--make
9.1.5.2. Expression evaluation mode
9.1.5.3. Batch compiler mode
9.1.5.3.1. Overriding the default behaviour for a file
9.1.6. Verbosity options
9.1.7. Platform-specific Flags
9.1.8. Miscellaneous flags
9.2. Warnings and sanity-checking
9.3. Optimisation (code improvement)
9.3.1.
-O*
: convenient “packages” of optimisation flags.
9.3.2.
-f*
: platform-independent flags
9.4. Using Concurrent Haskell
9.5. Using SMP parallelism
9.5.1. Compile-time options for SMP parallelism
9.5.2. RTS options for SMP parallelism
9.5.3. Hints for using SMP parallelism
9.6. Flag reference
9.6.1. Verbosity options
9.6.2. Alternative modes of operation
9.6.3. Which phases to run
9.6.4. Redirecting output
9.6.5. Keeping intermediate files
9.6.6. Temporary files
9.6.7. Finding imports
9.6.8. Interface file options
9.6.9. Recompilation checking
9.6.10. Interactive-mode options
9.6.11. Packages
9.6.12. Language options
9.6.13. Warnings
9.6.14. Optimisation levels
9.6.15. Individual optimisations
9.6.16. Profiling options
9.6.17. Program coverage options
9.6.18. C pre-processor options
9.6.19. Code generation options
9.6.20. Linking options
9.6.21. Plugin options
9.6.22. Replacing phases
9.6.23. Forcing options to particular phases
9.6.24. Platform-specific options
9.6.25. Compiler debugging options
9.6.26. Miscellaneous compiler options
9.7. Running a compiled program
9.7.1. Setting RTS options
9.7.1.1. Setting RTS options on the command line
9.7.1.2. Setting RTS options at compile time
9.7.1.3. Setting RTS options with the
GHCRTS
environment variable
9.7.1.4. “Hooks” to change RTS behaviour
9.7.1.4.1. Runtime events
9.7.1.4.2. Event log output
9.7.2. Miscellaneous RTS options
9.7.3. RTS options to control the garbage collector
9.7.4. RTS options to produce runtime statistics
9.7.5. RTS options for concurrency and parallelism
9.7.6. RTS options for profiling
9.7.7. Tracing
9.7.8. RTS options for hackers, debuggers, and over-interested souls
9.7.9. Getting information about the RTS
9.8. Filenames and separate compilation
9.8.1. Haskell source files
9.8.2. Output files
9.8.3. The search path
9.8.4. Redirecting the compilation output(s)
9.8.5. Keeping Intermediate Files
9.8.6. Redirecting temporary files
9.8.7. Other options related to interface files
9.8.8. The recompilation checker
9.8.9. How to compile mutually recursive modules
9.8.10. Module signatures
9.8.11. Using
make
9.8.12. Dependency generation
9.8.13. Orphan modules and instance declarations
9.9. Packages
9.9.1. Using Packages
9.9.2. The
main
package
9.9.3. Consequences of packages for the Haskell language
9.9.4. Thinning and renaming modules
9.9.5. Package Databases
9.9.5.1. The
GHC_PACKAGE_PATH
environment variable
9.9.5.2. Package environments
9.9.6. Installed package IDs, dependencies, and broken packages
9.9.7. Package management (the
ghc-pkg
command)
9.9.8. Building a package from Haskell source
9.9.9.
InstalledPackageInfo
: a package specification
9.10. GHC Backends
9.10.1. Native Code Generator (
-fasm
)
9.10.2. LLVM Code Generator (
-fllvm
)
9.10.3. C Code Generator (
-fvia-C
)
9.10.4. Unregisterised compilation
9.11. Options related to a particular phase
9.11.1. Replacing the program for one or more phases
9.11.2. Forcing options to a particular phase
9.11.3. Options affecting the C pre-processor
9.11.3.1. Standard CPP macros
9.11.3.2. CPP and string gaps
9.11.4. Options affecting a Haskell pre-processor
9.11.5. Options affecting code generation
9.11.6. Options affecting linking
9.12. Using shared libraries
9.12.1. Building programs that use shared libraries
9.12.2. Shared libraries for Haskell packages
9.12.3. Shared libraries that export a C API
9.12.4. Finding shared libraries at runtime
9.12.4.1. Unix
9.12.4.2. Mac OS X
9.13. Debugging the compiler
9.13.1. Dumping out compiler intermediate structures
9.13.1.1. Front-end
9.13.1.2. Type-checking and renaming
9.13.1.3. Core representation and simplification
9.13.1.4. STG representation
9.13.1.5. C-\- representation
9.13.1.6. LLVM code generator
9.13.1.7. Native code generator
9.13.1.8. Miscellaneous backend dumps
9.13.2. Formatting dumps
9.13.3. Suppressing unwanted information
9.13.4. Checking for consistency
9.13.5. Checking for determinism
Navigation
index
next
|
previous
|
GHC 8.6.4 User's Guide
»