diff options
Diffstat (limited to 'docs/users_guide/debugging.rst')
-rw-r--r-- | docs/users_guide/debugging.rst | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/users_guide/debugging.rst b/docs/users_guide/debugging.rst index 4e0be937f4..7adcc84f13 100644 --- a/docs/users_guide/debugging.rst +++ b/docs/users_guide/debugging.rst @@ -758,6 +758,17 @@ Checking for consistency Compile with alignment checks for all info table dereferences. This can be useful when finding pointer tagging issues. +.. ghc-flag:: -fproc-alignment + :shortdesc: Align functions at given boundry. + :type: dynamic + + Align functions to multiples of the given value. Only valid values are powers + of two. + + ``-fproc-alignment=64`` can be used to limit alignment impact on performance + as each function will start at a cache line. + However forcing larger alignments in general reduces performance. + .. ghc-flag:: -fcatch-bottoms :shortdesc: Insert ``error`` expressions after bottoming expressions; useful when debugging the compiler. |