• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<html>
2<head>
3<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
4<title>Rationale</title>
5<link rel="stylesheet" href="../../../../../doc/src/boostbook.css" type="text/css">
6<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
7<link rel="home" href="../index.html" title="Chapter 1. Context">
8<link rel="up" href="../index.html" title="Chapter 1. Context">
9<link rel="prev" href="architectures/crosscompiling.html" title="Cross compiling">
10<link rel="next" href="rationale/other_apis_.html" title="Other APIs">
11</head>
12<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
13<table cellpadding="2" width="100%"><tr>
14<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../boost.png"></td>
15<td align="center"><a href="../../../../../index.html">Home</a></td>
16<td align="center"><a href="../../../../../libs/libraries.htm">Libraries</a></td>
17<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
18<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
19<td align="center"><a href="../../../../../more/index.htm">More</a></td>
20</tr></table>
21<hr>
22<div class="spirit-nav">
23<a accesskey="p" href="architectures/crosscompiling.html"><img src="../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../index.html"><img src="../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="rationale/other_apis_.html"><img src="../../../../../doc/src/images/next.png" alt="Next"></a>
24</div>
25<div class="section">
26<div class="titlepage"><div><div><h2 class="title" style="clear: both">
27<a name="context.rationale"></a><a class="link" href="rationale.html" title="Rationale">Rationale</a>
28</h2></div></div></div>
29<div class="toc"><dl class="toc">
30<dt><span class="section"><a href="rationale/other_apis_.html">Other APIs </a></span></dt>
31<dt><span class="section"><a href="rationale/x86_and_floating_point_env.html">x86 and
32      floating-point env</a></span></dt>
33</dl></div>
34<h4>
35<a name="context.rationale.h0"></a>
36      <span class="phrase"><a name="context.rationale.no_inline_assembler"></a></span><a class="link" href="rationale.html#context.rationale.no_inline_assembler">No
37      inline-assembler</a>
38    </h4>
39<p>
40      Some newer compiler (for instance MSVC 10 for x86_64 and itanium) do not support
41      inline assembler. <a href="#ftn.context.rationale.f0" class="footnote" name="context.rationale.f0"><sup class="footnote">[1]</sup></a>. Inlined assembler generates code bloating which is not welcome
42      on embedded systems.
43    </p>
44<h4>
45<a name="context.rationale.h1"></a>
46      <span class="phrase"><a name="context.rationale.fcontext_t"></a></span><a class="link" href="rationale.html#context.rationale.fcontext_t">fcontext_t</a>
47    </h4>
48<p>
49      <span class="bold"><strong>Boost.Context</strong></span> provides the low level API fcontext_t
50      which is implemented in assembler to provide context swapping operations. fcontext_t
51      is the part to port to new platforms.
52    </p>
53<div class="note"><table border="0" summary="Note">
54<tr>
55<td rowspan="2" align="center" valign="top" width="25"><img alt="[Note]" src="../../../../../doc/src/images/note.png"></td>
56<th align="left">Note</th>
57</tr>
58<tr><td align="left" valign="top"><p>
59        Context switches do not preserve the signal mask on UNIX systems.
60      </p></td></tr>
61</table></div>
62<p>
63      <span class="emphasis"><em>fcontext_t</em></span> is an opaque pointer.
64    </p>
65<div class="footnotes">
66<br><hr style="width:100; text-align:left;margin-left: 0">
67<div id="ftn.context.rationale.f0" class="footnote"><p><a href="#context.rationale.f0" class="para"><sup class="para">[1] </sup></a>
68        <a href="http://msdn.microsoft.com/en-us/library/4ks26t93.aspx" target="_top">MSDN article
69        'Inline Assembler'</a>
70      </p></div>
71</div>
72</div>
73<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
74<td align="left"></td>
75<td align="right"><div class="copyright-footer">Copyright © 2014 Oliver Kowalke<p>
76        Distributed under the Boost Software License, Version 1.0. (See accompanying
77        file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
78      </p>
79</div></td>
80</tr></table>
81<hr>
82<div class="spirit-nav">
83<a accesskey="p" href="architectures/crosscompiling.html"><img src="../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../index.html"><img src="../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="rationale/other_apis_.html"><img src="../../../../../doc/src/images/next.png" alt="Next"></a>
84</div>
85</body>
86</html>
87