Enabling-libitm.html 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <html>
  3. <!-- Copyright (C) 2011-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.2 or
  6. any later version published by the Free Software Foundation; with no
  7. Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
  8. A copy of the license is included in the section entitled "GNU
  9. Free Documentation License". -->
  10. <!-- Created by GNU Texinfo 5.2, http://www.gnu.org/software/texinfo/ -->
  11. <head>
  12. <title>GNU libitm: Enabling libitm</title>
  13. <meta name="description" content="GNU libitm: Enabling libitm">
  14. <meta name="keywords" content="GNU libitm: Enabling libitm">
  15. <meta name="resource-type" content="document">
  16. <meta name="distribution" content="global">
  17. <meta name="Generator" content="makeinfo">
  18. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  19. <link href="index.html#Top" rel="start" title="Top">
  20. <link href="Library-Index.html#Library-Index" rel="index" title="Library Index">
  21. <link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
  22. <link href="index.html#Top" rel="up" title="Top">
  23. <link href="C_002fC_002b_002b-Language-Constructs-for-TM.html#C_002fC_002b_002b-Language-Constructs-for-TM" rel="next" title="C/C++ Language Constructs for TM">
  24. <link href="index.html#Top" rel="prev" title="Top">
  25. <style type="text/css">
  26. <!--
  27. a.summary-letter {text-decoration: none}
  28. blockquote.smallquotation {font-size: smaller}
  29. div.display {margin-left: 3.2em}
  30. div.example {margin-left: 3.2em}
  31. div.indentedblock {margin-left: 3.2em}
  32. div.lisp {margin-left: 3.2em}
  33. div.smalldisplay {margin-left: 3.2em}
  34. div.smallexample {margin-left: 3.2em}
  35. div.smallindentedblock {margin-left: 3.2em; font-size: smaller}
  36. div.smalllisp {margin-left: 3.2em}
  37. kbd {font-style:oblique}
  38. pre.display {font-family: inherit}
  39. pre.format {font-family: inherit}
  40. pre.menu-comment {font-family: serif}
  41. pre.menu-preformatted {font-family: serif}
  42. pre.smalldisplay {font-family: inherit; font-size: smaller}
  43. pre.smallexample {font-size: smaller}
  44. pre.smallformat {font-family: inherit; font-size: smaller}
  45. pre.smalllisp {font-size: smaller}
  46. span.nocodebreak {white-space:nowrap}
  47. span.nolinebreak {white-space:nowrap}
  48. span.roman {font-family:serif; font-weight:normal}
  49. span.sansserif {font-family:sans-serif; font-weight:normal}
  50. ul.no-bullet {list-style: none}
  51. -->
  52. </style>
  53. </head>
  54. <body lang="en" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">
  55. <a name="Enabling-libitm"></a>
  56. <div class="header">
  57. <p>
  58. Next: <a href="C_002fC_002b_002b-Language-Constructs-for-TM.html#C_002fC_002b_002b-Language-Constructs-for-TM" accesskey="n" rel="next">C/C++ Language Constructs for TM</a>, Previous: <a href="index.html#Top" accesskey="p" rel="prev">Top</a>, Up: <a href="index.html#Top" accesskey="u" rel="up">Top</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Library-Index.html#Library-Index" title="Index" rel="index">Index</a>]</p>
  59. </div>
  60. <hr>
  61. <a name="Enabling-libitm-1"></a>
  62. <h2 class="chapter">1 Enabling libitm</h2>
  63. <p>To activate support for TM in C/C++, the compile-time flag <samp>-fgnu-tm</samp>
  64. must be specified. This enables TM language-level constructs such as
  65. transaction statements (e.g., <code>__transaction_atomic</code>, see <a href="C_002fC_002b_002b-Language-Constructs-for-TM.html#C_002fC_002b_002b-Language-Constructs-for-TM">C/C++ Language Constructs for TM</a> for details).
  66. </p>
  67. </body>
  68. </html>