| OLD | NEW |
| 1 {{+bindTo:partials.standard_nacl_article}} | 1 {{+bindTo:partials.standard_nacl_article}} |
| 2 | 2 |
| 3 <section id="nacl-and-pnacl"> | 3 <section id="nacl-and-pnacl"> |
| 4 <span id="id1"></span><h1 id="nacl-and-pnacl"><span id="id1"></span>NaCl and PNa
Cl</h1> | 4 <span id="id1"></span><h1 id="nacl-and-pnacl"><span id="id1"></span>NaCl and PNa
Cl</h1> |
| 5 <p>This document describes the differences between <strong>Native Client</strong
> and | 5 <p>This document describes the differences between <strong>Native Client</strong
> and |
| 6 <strong>Portable Native Client</strong>, and provides recommendations for when t
o use each.</p> | 6 <strong>Portable Native Client</strong>, and provides recommendations for when t
o use each.</p> |
| 7 <div class="contents local" id="contents" style="display: none"> | 7 <div class="contents local" id="contents" style="display: none"> |
| 8 <ul class="small-gap"> | 8 <ul class="small-gap"> |
| 9 <li><a class="reference internal" href="#native-client-nacl" id="id3">Native Cli
ent (NaCl)</a></li> | 9 <li><a class="reference internal" href="#native-client-nacl" id="id3">Native Cli
ent (NaCl)</a></li> |
| 10 <li><a class="reference internal" href="#portable-native-client-pnacl" id="id4">
Portable Native Client (PNaCl)</a></li> | 10 <li><a class="reference internal" href="#portable-native-client-pnacl" id="id4">
Portable Native Client (PNaCl)</a></li> |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 conveniences of PNaCl, such as not having to explicitly compile your application | 86 conveniences of PNaCl, such as not having to explicitly compile your application |
| 87 for all supported architectures.</p> | 87 for all supported architectures.</p> |
| 88 </section><section id="when-to-use-nacl"> | 88 </section><section id="when-to-use-nacl"> |
| 89 <span id="id2"></span><h2 id="when-to-use-nacl"><span id="id2"></span>When to us
e NaCl</h2> | 89 <span id="id2"></span><h2 id="when-to-use-nacl"><span id="id2"></span>When to us
e NaCl</h2> |
| 90 <p>The limitations below apply to the current release of PNaCl. If any of | 90 <p>The limitations below apply to the current release of PNaCl. If any of |
| 91 these limitations are critical for your application, you should use | 91 these limitations are critical for your application, you should use |
| 92 non-portable NaCl:</p> | 92 non-portable NaCl:</p> |
| 93 <ul class="small-gap"> | 93 <ul class="small-gap"> |
| 94 <li>By its nature, PNaCl does not support architecture-specific | 94 <li>By its nature, PNaCl does not support architecture-specific |
| 95 instructions in an application (i.e., inline assembly), but tries to | 95 instructions in an application (i.e., inline assembly), but tries to |
| 96 offer high-performance portable equivalents.</li> | 96 offer high-performance portable equivalents. One such example is |
| 97 PNaCl’s <a class="reference internal" href="/native-client/reference/pnacl
-c-cpp-language-support.html#portable-simd-vectors"><em>Portable SIMD Vectors</e
m></a>.</li> |
| 97 <li>Currently PNaCl only supports static linking with the <code>newlib</code> | 98 <li>Currently PNaCl only supports static linking with the <code>newlib</code> |
| 98 C standard library (the Native Client SDK provides a PNaCl port of | 99 C standard library (the Native Client SDK provides a PNaCl port of |
| 99 <code>newlib</code>). Dynamic linking and <code>glibc</code> are not yet support
ed. | 100 <code>newlib</code>). Dynamic linking and <code>glibc</code> are not yet support
ed. |
| 100 Work is under way to enable dynamic linking in future versions of PNaCl.</li> | 101 Work is under way to enable dynamic linking in future versions of PNaCl.</li> |
| 101 <li>In the initial release, PNaCl does not support some GNU extensions | 102 <li>In the initial release, PNaCl does not support some GNU extensions |
| 102 like taking the address of a label for computed <code>goto</code>, or nested | 103 like taking the address of a label for computed <code>goto</code>, or nested |
| 103 functions.</li> | 104 functions.</li> |
| 104 </ul> | 105 </ul> |
| 105 </section></section> | 106 </section></section> |
| 106 | 107 |
| 107 {{/partials.standard_nacl_article}} | 108 {{/partials.standard_nacl_article}} |
| OLD | NEW |