Dump-examples.html 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <html>
  3. <!-- Copyright (C) 1988-2017 Free Software Foundation, Inc.
  4. Permission is granted to copy, distribute and/or modify this document
  5. under the terms of the GNU Free Documentation License, Version 1.3 or
  6. any later version published by the Free Software Foundation; with the
  7. Invariant Sections being "Funding Free Software", the Front-Cover
  8. Texts being (a) (see below), and with the Back-Cover Texts being (b)
  9. (see below). A copy of the license is included in the section entitled
  10. "GNU Free Documentation License".
  11. (a) The FSF's Front-Cover Text is:
  12. A GNU Manual
  13. (b) The FSF's Back-Cover Text is:
  14. You have freedom to copy and modify this GNU Manual, like GNU
  15. software. Copies published by the Free Software Foundation raise
  16. funds for GNU development. -->
  17. <!-- Created by GNU Texinfo 5.2, http://www.gnu.org/software/texinfo/ -->
  18. <head>
  19. <title>GNU Compiler Collection (GCC) Internals: Dump examples</title>
  20. <meta name="description" content="GNU Compiler Collection (GCC) Internals: Dump examples">
  21. <meta name="keywords" content="GNU Compiler Collection (GCC) Internals: Dump examples">
  22. <meta name="resource-type" content="document">
  23. <meta name="distribution" content="global">
  24. <meta name="Generator" content="makeinfo">
  25. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  26. <link href="index.html#Top" rel="start" title="Top">
  27. <link href="Option-Index.html#Option-Index" rel="index" title="Option Index">
  28. <link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
  29. <link href="Optimization-info.html#Optimization-info" rel="up" title="Optimization info">
  30. <link href="GENERIC.html#GENERIC" rel="next" title="GENERIC">
  31. <link href="Dump-types.html#Dump-types" rel="prev" title="Dump types">
  32. <style type="text/css">
  33. <!--
  34. a.summary-letter {text-decoration: none}
  35. blockquote.smallquotation {font-size: smaller}
  36. div.display {margin-left: 3.2em}
  37. div.example {margin-left: 3.2em}
  38. div.indentedblock {margin-left: 3.2em}
  39. div.lisp {margin-left: 3.2em}
  40. div.smalldisplay {margin-left: 3.2em}
  41. div.smallexample {margin-left: 3.2em}
  42. div.smallindentedblock {margin-left: 3.2em; font-size: smaller}
  43. div.smalllisp {margin-left: 3.2em}
  44. kbd {font-style:oblique}
  45. pre.display {font-family: inherit}
  46. pre.format {font-family: inherit}
  47. pre.menu-comment {font-family: serif}
  48. pre.menu-preformatted {font-family: serif}
  49. pre.smalldisplay {font-family: inherit; font-size: smaller}
  50. pre.smallexample {font-size: smaller}
  51. pre.smallformat {font-family: inherit; font-size: smaller}
  52. pre.smalllisp {font-size: smaller}
  53. span.nocodebreak {white-space:nowrap}
  54. span.nolinebreak {white-space:nowrap}
  55. span.roman {font-family:serif; font-weight:normal}
  56. span.sansserif {font-family:sans-serif; font-weight:normal}
  57. ul.no-bullet {list-style: none}
  58. -->
  59. </style>
  60. </head>
  61. <body lang="en" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">
  62. <a name="Dump-examples"></a>
  63. <div class="header">
  64. <p>
  65. Previous: <a href="Dump-types.html#Dump-types" accesskey="p" rel="prev">Dump types</a>, Up: <a href="Optimization-info.html#Optimization-info" accesskey="u" rel="up">Optimization info</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Option-Index.html#Option-Index" title="Index" rel="index">Index</a>]</p>
  66. </div>
  67. <hr>
  68. <a name="Dump-examples-1"></a>
  69. <h4 class="subsection">9.7.6 Dump examples</h4>
  70. <a name="index-dump-examples"></a>
  71. <div class="smallexample">
  72. <pre class="smallexample">gcc -O3 -fopt-info-missed=missed.all
  73. </pre></div>
  74. <p>outputs missed optimization report from all the passes into
  75. <samp>missed.all</samp>.
  76. </p>
  77. <p>As another example,
  78. </p><div class="smallexample">
  79. <pre class="smallexample">gcc -O3 -fopt-info-inline-optimized-missed=inline.txt
  80. </pre></div>
  81. <p>will output information about missed optimizations as well as
  82. optimized locations from all the inlining passes into
  83. <samp>inline.txt</samp>.
  84. </p>
  85. <p>If the <var>filename</var> is provided, then the dumps from all the
  86. applicable optimizations are concatenated into the <samp>filename</samp>.
  87. Otherwise the dump is output onto <samp>stderr</samp>. If <var>options</var> is
  88. omitted, it defaults to <samp>all-all</samp>, which means dump all
  89. available optimization info from all the passes. In the following
  90. example, all optimization info is output on to <samp>stderr</samp>.
  91. </p>
  92. <div class="smallexample">
  93. <pre class="smallexample">gcc -O3 -fopt-info
  94. </pre></div>
  95. <p>Note that <samp>-fopt-info-vec-missed</samp> behaves the same as
  96. <samp>-fopt-info-missed-vec</samp>.
  97. </p>
  98. <p>As another example, consider
  99. </p>
  100. <div class="smallexample">
  101. <pre class="smallexample">gcc -fopt-info-vec-missed=vec.miss -fopt-info-loop-optimized=loop.opt
  102. </pre></div>
  103. <p>Here the two output file names <samp>vec.miss</samp> and <samp>loop.opt</samp> are
  104. in conflict since only one output file is allowed. In this case, only
  105. the first option takes effect and the subsequent options are
  106. ignored. Thus only the <samp>vec.miss</samp> is produced which containts
  107. dumps from the vectorizer about missed opportunities.
  108. </p>
  109. </body>
  110. </html>