Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
GHC
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex D
GHC
Commits
0d792bea
Commit
0d792bea
authored
Jul 10, 2008
by
Ian Lynagh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move some flags from the Makefile into module pragmas
parent
a31cf953
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
21 additions
and
9 deletions
+21
-9
compiler/Makefile
compiler/Makefile
+0
-8
compiler/utils/Binary.hs
compiler/utils/Binary.hs
+4
-0
compiler/utils/Encoding.hs
compiler/utils/Encoding.hs
+4
-0
compiler/utils/FastMutInt.lhs
compiler/utils/FastMutInt.lhs
+5
-1
compiler/utils/FastString.lhs
compiler/utils/FastString.lhs
+4
-0
compiler/utils/StringBuffer.lhs
compiler/utils/StringBuffer.lhs
+4
-0
No files found.
compiler/Makefile
View file @
0d792bea
...
...
@@ -645,14 +645,6 @@ endif
# basicTypes/SrcLoc_HC_OPTS = -funbox-strict-fields
# We always optimise some low-level modules, otherwise performance of
# a non-optimised compiler is severely affected.
utils/
Binary_HC_OPTS
+=
-O
-funbox-strict-fields
utils/
FastMutInt_HC_OPTS
+=
-O
utils/
Encoding_HC_OPTS
+=
-O
utils/
StringBuffer_HC_OPTS
+=
-O
-funbox-strict-fields
utils/
FastString_HC_OPTS
+=
-O
-funbox-strict-fields
# ---- Profiling ----
#simplCore/Simplify_HC_OPTS = -auto-all
#simplCore/SimplEnv_HC_OPTS = -auto-all
...
...
compiler/utils/Binary.hs
View file @
0d792bea
{-# OPTIONS -cpp #-}
{-# OPTIONS_GHC -O -funbox-strict-fields #-}
-- We always optimise this, otherwise performance of a non-optimised
-- compiler is severely affected
--
-- (c) The University of Glasgow 2002-2006
--
...
...
compiler/utils/Encoding.hs
View file @
0d792bea
{-# OPTIONS_GHC -O #-}
-- We always optimise this, otherwise performance of a non-optimised
-- compiler is severely affected
-- -----------------------------------------------------------------------------
--
-- (c) The University of Glasgow, 1997-2006
...
...
compiler/utils/FastMutInt.lhs
View file @
0d792bea
\begin{code}
{-# OPTIONS -cpp #-}
{-# OPTIONS_GHC -O #-}
-- We always optimise this, otherwise performance of a non-optimised
-- compiler is severely affected
--
-- (c) The University of Glasgow 2002-2006
--
-- Unboxed mutable Ints
\begin{code}
module FastMutInt(
FastMutInt, newFastMutInt,
readFastMutInt, writeFastMutInt,
...
...
compiler/utils/FastString.lhs
View file @
0d792bea
...
...
@@ -2,6 +2,10 @@
% (c) The University of Glasgow, 1997-2006
%
\begin{code}
{-# OPTIONS_GHC -O -funbox-strict-fields #-}
-- We always optimise this, otherwise performance of a non-optimised
-- compiler is severely affected
{-
FastString: A compact, hash-consed, representation of character strings.
Comparison is O(1), and you can get a Unique from them.
...
...
compiler/utils/StringBuffer.lhs
View file @
0d792bea
...
...
@@ -6,6 +6,10 @@
Buffers for scanning string input stored in external arrays.
\begin{code}
{-# OPTIONS_GHC -O -funbox-strict-fields #-}
-- We always optimise this, otherwise performance of a non-optimised
-- compiler is severely affected
module StringBuffer
(
StringBuffer(..),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment