OLD | NEW |
1 {{+bindTo:partials.standard_nacl_article}} | 1 {{+bindTo:partials.standard_nacl_article}} |
2 | 2 |
3 <section id="frequently-asked-questions"> | 3 <section id="frequently-asked-questions"> |
4 <h1 id="frequently-asked-questions">Frequently Asked Questions</h1> | 4 <h1 id="frequently-asked-questions">Frequently Asked Questions</h1> |
5 <div class="contents local" id="contents" style="display: none"> | 5 <div class="contents local" id="contents" style="display: none"> |
6 <ul class="small-gap"> | 6 <ul class="small-gap"> |
7 <li><p class="first"><a class="reference internal" href="#what-is-native-client-
good-for" id="id1">What is Native Client Good For?</a></p> | 7 <li><p class="first"><a class="reference internal" href="#what-is-native-client-
good-for" id="id1">What is Native Client Good For?</a></p> |
8 <ul class="small-gap"> | 8 <ul class="small-gap"> |
9 <li><a class="reference internal" href="#why-did-google-build-native-client" id=
"id2">Why did Google build Native Client?</a></li> | 9 <li><a class="reference internal" href="#why-did-google-build-native-client" id=
"id2">Why did Google build Native Client?</a></li> |
10 <li><a class="reference internal" href="#when-should-i-use-portable-native-clien
t-instead-of-native-client" id="id3">When should I use Portable Native Client in
stead of Native Client?</a></li> | 10 <li><a class="reference internal" href="#when-should-i-use-portable-native-clien
t-instead-of-native-client" id="id3">When should I use Portable Native Client in
stead of Native Client?</a></li> |
11 <li><a class="reference internal" href="#when-should-i-use-portable-native-clien
t-native-client" id="id4">When should I use Portable Native Client / Native Clie
nt?</a></li> | 11 <li><a class="reference internal" href="#when-should-i-use-portable-native-clien
t-native-client" id="id4">When should I use Portable Native Client / Native Clie
nt?</a></li> |
12 <li><a class="reference internal" href="#how-fast-does-code-run-in-portable-nati
ve-client" id="id5">How fast does code run in Portable Native Client?</a></li> | 12 <li><a class="reference internal" href="#how-fast-does-code-run-in-portable-nati
ve-client" id="id5">How fast does code run in Portable Native Client?</a></li> |
13 <li><a class="reference internal" href="#why-use-portable-native-client-instead-
of-technology-x" id="id6">Why use Portable Native Client instead of <em><tech
nology X></em>?</a></li> | 13 <li><a class="reference internal" href="#why-use-portable-native-client-instead-
of-technology-x" id="id6">Why use Portable Native Client instead of <em><tech
nology X></em>?</a></li> |
14 <li><a class="reference internal" href="#if-i-want-direct-access-to-the-os-shoul
d-i-use-native-client" id="id7">If I want direct access to the OS, should I use
Native Client?</a></li> | 14 <li><a class="reference internal" href="#if-i-want-direct-access-to-the-os-shoul
d-i-use-native-client" id="id7">If I want direct access to the OS, should I use
Native Client?</a></li> |
15 </ul> | 15 </ul> |
16 </li> | 16 </li> |
17 <li><p class="first"><a class="reference internal" href="#development-environmen
ts-and-tools" id="id8">Development Environments and Tools</a></p> | 17 <li><p class="first"><a class="reference internal" href="#development-environmen
ts-and-tools" id="id8">Development Environments and Tools</a></p> |
18 <ul class="small-gap"> | 18 <ul class="small-gap"> |
19 <li><a class="reference internal" href="#what-development-environment-and-develo
pment-operating-system-do-you-recommend" id="id9">What development environment a
nd development operating system do you recommend?</a></li> | 19 <li><a class="reference internal" href="#what-development-environment-and-develo
pment-operating-system-do-you-recommend" id="id9">What development environment a
nd development operating system do you recommend?</a></li> |
20 <li><a class="reference internal" href="#i-m-not-familiar-with-native-developmen
t-tools-can-i-still-use-the-native-client-sdk" id="id10">I’m not familiar
with native development tools, can I still use the Native Client SDK?</a></li> | 20 <li><a class="reference internal" href="#i-m-not-familiar-with-native-developmen
t-tools-can-i-still-use-the-native-client-sdk" id="id10">I’m not familiar
with native development tools, can I still use the Native Client SDK?</a></li> |
21 </ul> | 21 </ul> |
22 </li> | 22 </li> |
23 <li><p class="first"><a class="reference internal" href="#openness-and-supported
-architectures-and-languages" id="id11">Openness, and Supported Architectures an
d Languages</a></p> | 23 <li><p class="first"><a class="reference internal" href="#openness-and-supported
-architectures-and-languages" id="id11">Openness, and Supported Architectures an
d Languages</a></p> |
24 <ul class="small-gap"> | 24 <ul class="small-gap"> |
25 <li><a class="reference internal" href="#is-native-client-open-is-it-a-standard"
id="id12">Is Native Client open? Is it a standard?</a></li> | 25 <li><a class="reference internal" href="#is-native-client-open-is-it-a-standard"
id="id12">Is Native Client open? Is it a standard?</a></li> |
26 <li><a class="reference internal" href="#what-are-the-supported-instruction-set-
architectures" id="id13">What are the supported instruction set architectures?</
a></li> | 26 <li><a class="reference internal" href="#how-can-i-contribute-to-native-client"
id="id13">How can I contribute to Native Client?</a></li> |
27 <li><a class="reference internal" href="#do-i-have-to-use-c-or-c-i-d-really-like
-to-use-another-language" id="id14">Do I have to use C or C++? I’d really
like to use another language.</a></li> | 27 <li><a class="reference internal" href="#what-are-the-supported-instruction-set-
architectures" id="id14">What are the supported instruction set architectures?</
a></li> |
28 <li><a class="reference internal" href="#do-you-only-support-chrome-what-about-o
ther-browsers" id="id15">Do you only support Chrome? What about other browsers?<
/a></li> | 28 <li><a class="reference internal" href="#do-i-have-to-use-c-or-c-i-d-really-like
-to-use-another-language" id="id15">Do I have to use C or C++? I’d really
like to use another language.</a></li> |
29 <li><a class="reference internal" href="#what-s-the-difference-between-npapi-and
-pepper" id="id16">What’s the difference between NPAPI and Pepper?</a></li
> | 29 <li><a class="reference internal" href="#do-you-only-support-chrome-what-about-o
ther-browsers" id="id16">Do you only support Chrome? What about other browsers?<
/a></li> |
30 <li><a class="reference internal" href="#is-npapi-part-of-the-native-client-sdk"
id="id17">Is NPAPI part of the Native Client SDK?</a></li> | 30 <li><a class="reference internal" href="#what-s-the-difference-between-npapi-and
-pepper" id="id17">What’s the difference between NPAPI and Pepper?</a></li
> |
31 <li><a class="reference internal" href="#does-native-client-support-simd-vector-
instructions" id="id18">Does Native Client support SIMD vector instructions?</a>
</li> | 31 <li><a class="reference internal" href="#is-npapi-part-of-the-native-client-sdk"
id="id18">Is NPAPI part of the Native Client SDK?</a></li> |
32 <li><a class="reference internal" href="#can-i-use-native-client-for-3d-graphics
" id="id19">Can I use Native Client for 3D graphics?</a></li> | 32 <li><a class="reference internal" href="#does-native-client-support-simd-vector-
instructions" id="id19">Does Native Client support SIMD vector instructions?</a>
</li> |
33 <li><a class="reference internal" href="#does-native-client-support-concurrency-
parallelism" id="id20">Does Native Client support concurrency/parallelism?</a></
li> | 33 <li><a class="reference internal" href="#can-i-use-native-client-for-3d-graphics
" id="id20">Can I use Native Client for 3D graphics?</a></li> |
| 34 <li><a class="reference internal" href="#does-native-client-support-concurrency-
parallelism" id="id21">Does Native Client support concurrency/parallelism?</a></
li> |
34 </ul> | 35 </ul> |
35 </li> | 36 </li> |
36 <li><p class="first"><a class="reference internal" href="#coming-soon" id="id21"
>Coming Soon</a></p> | 37 <li><p class="first"><a class="reference internal" href="#coming-soon" id="id22"
>Coming Soon</a></p> |
37 <ul class="small-gap"> | 38 <ul class="small-gap"> |
38 <li><a class="reference internal" href="#do-native-client-modules-have-access-to
-external-devices" id="id22">Do Native Client modules have access to external de
vices?</a></li> | 39 <li><a class="reference internal" href="#do-native-client-modules-have-access-to
-external-devices" id="id23">Do Native Client modules have access to external de
vices?</a></li> |
39 </ul> | 40 </ul> |
40 </li> | 41 </li> |
41 <li><p class="first"><a class="reference internal" href="#security-and-privacy"
id="id23">Security and Privacy</a></p> | 42 <li><p class="first"><a class="reference internal" href="#security-and-privacy"
id="id24">Security and Privacy</a></p> |
42 <ul class="small-gap"> | 43 <ul class="small-gap"> |
43 <li><a class="reference internal" href="#what-happens-to-my-data-when-i-use-nati
ve-client" id="id24">What happens to my data when I use Native Client?</a></li> | 44 <li><a class="reference internal" href="#what-happens-to-my-data-when-i-use-nati
ve-client" id="id25">What happens to my data when I use Native Client?</a></li> |
44 <li><a class="reference internal" href="#how-does-native-client-prevent-sandboxe
d-code-from-doing-bad-things" id="id25">How does Native Client prevent sandboxed
code from doing Bad Things?</a></li> | 45 <li><a class="reference internal" href="#how-does-native-client-prevent-sandboxe
d-code-from-doing-bad-things" id="id26">How does Native Client prevent sandboxed
code from doing Bad Things?</a></li> |
45 <li><a class="reference internal" href="#how-does-google-know-that-the-safety-me
asures-in-native-client-are-sufficient" id="id26">How does Google know that the
safety measures in Native Client are sufficient?</a></li> | 46 <li><a class="reference internal" href="#how-does-google-know-that-the-safety-me
asures-in-native-client-are-sufficient" id="id27">How does Google know that the
safety measures in Native Client are sufficient?</a></li> |
46 </ul> | 47 </ul> |
47 </li> | 48 </li> |
48 <li><p class="first"><a class="reference internal" href="#development" id="id27"
>Development</a></p> | 49 <li><p class="first"><a class="reference internal" href="#development" id="id28"
>Development</a></p> |
49 <ul class="small-gap"> | 50 <ul class="small-gap"> |
50 <li><a class="reference internal" href="#how-do-i-debug" id="id28">How do I debu
g?</a></li> | 51 <li><a class="reference internal" href="#how-do-i-debug" id="id29">How do I debu
g?</a></li> |
51 <li><a class="reference internal" href="#how-do-i-build-x86-32-x86-64-or-arm-nex
es" id="id29">How do I build x86-32, x86-64 or ARM <code>.nexes</code>?</a></li> | 52 <li><a class="reference internal" href="#how-do-i-build-x86-32-x86-64-or-arm-nex
es" id="id30">How do I build x86-32, x86-64 or ARM <code>.nexes</code>?</a></li> |
52 <li><a class="reference internal" href="#how-can-my-web-application-determine-wh
ich-nexe-to-load" id="id30">How can my web application determine which <code>.ne
xe</code> to load?</a></li> | 53 <li><a class="reference internal" href="#how-can-my-web-application-determine-wh
ich-nexe-to-load" id="id31">How can my web application determine which <code>.ne
xe</code> to load?</a></li> |
53 <li><a class="reference internal" href="#is-it-possible-to-build-a-native-client
-module-with-just-plain-c-not-c" id="id31">Is it possible to build a Native Clie
nt module with just plain C (not C++)?</a></li> | 54 <li><a class="reference internal" href="#is-it-possible-to-build-a-native-client
-module-with-just-plain-c-not-c" id="id32">Is it possible to build a Native Clie
nt module with just plain C (not C++)?</a></li> |
54 <li><a class="reference internal" href="#what-unix-system-calls-can-i-make-throu
gh-native-client" id="id32">What UNIX system calls can I make through Native Cli
ent?</a></li> | 55 <li><a class="reference internal" href="#what-unix-system-calls-can-i-make-throu
gh-native-client" id="id33">What UNIX system calls can I make through Native Cli
ent?</a></li> |
55 <li><a class="reference internal" href="#is-my-favorite-third-party-library-avai
lable-for-native-client" id="id33">Is my favorite third-party library available
for Native Client?</a></li> | 56 <li><a class="reference internal" href="#is-my-favorite-third-party-library-avai
lable-for-native-client" id="id34">Is my favorite third-party library available
for Native Client?</a></li> |
56 <li><a class="reference internal" href="#do-all-the-files-in-an-application-need
-to-be-served-from-the-same-domain" id="id34">Do all the files in an application
need to be served from the same domain?</a></li> | 57 <li><a class="reference internal" href="#do-all-the-files-in-an-application-need
-to-be-served-from-the-same-domain" id="id35">Do all the files in an application
need to be served from the same domain?</a></li> |
57 </ul> | 58 </ul> |
58 </li> | 59 </li> |
59 <li><p class="first"><a class="reference internal" href="#portability" id="id35"
>Portability</a></p> | 60 <li><p class="first"><a class="reference internal" href="#portability" id="id36"
>Portability</a></p> |
60 <ul class="small-gap"> | 61 <ul class="small-gap"> |
61 <li><a class="reference internal" href="#do-i-have-to-do-anything-special-to-mak
e-my-application-run-on-different-operating-systems" id="id36">Do I have to do a
nything special to make my application run on different operating systems?</a></
li> | 62 <li><a class="reference internal" href="#do-i-have-to-do-anything-special-to-mak
e-my-application-run-on-different-operating-systems" id="id37">Do I have to do a
nything special to make my application run on different operating systems?</a></
li> |
62 <li><a class="reference internal" href="#how-easy-is-it-to-port-my-existing-nati
ve-code-to-native-client" id="id37">How easy is it to port my existing native co
de to Native Client?</a></li> | 63 <li><a class="reference internal" href="#how-easy-is-it-to-port-my-existing-nati
ve-code-to-native-client" id="id38">How easy is it to port my existing native co
de to Native Client?</a></li> |
63 </ul> | 64 </ul> |
64 </li> | 65 </li> |
65 <li><p class="first"><a class="reference internal" href="#troubleshooting" id="i
d38">Troubleshooting</a></p> | 66 <li><p class="first"><a class="reference internal" href="#troubleshooting" id="i
d39">Troubleshooting</a></p> |
66 <ul class="small-gap"> | 67 <ul class="small-gap"> |
67 <li><a class="reference internal" href="#my-pexe-isn-t-loading-help" id="id39">M
y <code>.pexe</code> isn’t loading, help!</a></li> | 68 <li><a class="reference internal" href="#my-pexe-isn-t-loading-help" id="id40">M
y <code>.pexe</code> isn’t loading, help!</a></li> |
68 <li><a class="reference internal" href="#my-nexe-files-never-finish-loading-what
-gives" id="id40">My <code>.nexe</code> files never finish loading. What gives?<
/a></li> | 69 <li><a class="reference internal" href="#my-nexe-files-never-finish-loading-what
-gives" id="id41">My <code>.nexe</code> files never finish loading. What gives?<
/a></li> |
69 </ul> | 70 </ul> |
70 </li> | 71 </li> |
71 </ul> | 72 </ul> |
72 | 73 |
73 </div><p>This document answers some frequently asked questions about Native | 74 </div><p>This document answers some frequently asked questions about Native |
74 Client (NaCl) and Portable Native Client (PNaCl, pronounced | 75 Client (NaCl) and Portable Native Client (PNaCl, pronounced |
75 “pinnacle”). For a high-level overview of Native Client, see the | 76 “pinnacle”). For a high-level overview of Native Client, see the |
76 <a class="reference internal" href="/native-client/overview.html"><em>Technical
Overview</em></a>.</p> | 77 <a class="reference internal" href="/native-client/overview.html"><em>Technical
Overview</em></a>.</p> |
77 <p>If you have questions that aren’t covered in this FAQ:</p> | 78 <p>If you have questions that aren’t covered in this FAQ:</p> |
78 <ul class="small-gap"> | 79 <ul class="small-gap"> |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 for an <a class="reference external" href="https://www.google.com/search?q=gcc+i
ntroduction">introduction to GCC</a>.</p> | 214 for an <a class="reference external" href="https://www.google.com/search?q=gcc+i
ntroduction">introduction to GCC</a>.</p> |
214 <h2 id="openness-and-supported-architectures-and-languages">Openness, and Suppor
ted Architectures and Languages</h2> | 215 <h2 id="openness-and-supported-architectures-and-languages">Openness, and Suppor
ted Architectures and Languages</h2> |
215 <h3 id="is-native-client-open-is-it-a-standard">Is Native Client open? Is it a s
tandard?</h3> | 216 <h3 id="is-native-client-open-is-it-a-standard">Is Native Client open? Is it a s
tandard?</h3> |
216 <p>Native Client is completely open: the executable format is open and the | 217 <p>Native Client is completely open: the executable format is open and the |
217 <a class="reference external" href="https://code.google.com/p/nativeclient/">sou
rce code is open</a>. Right | 218 <a class="reference external" href="https://code.google.com/p/nativeclient/">sou
rce code is open</a>. Right |
218 now the Native Client project is in its early stages, so it’s premature | 219 now the Native Client project is in its early stages, so it’s premature |
219 to consider Native Client for standardization.</p> | 220 to consider Native Client for standardization.</p> |
220 <p>We consistenly try to document our design and implementation and hope to | 221 <p>We consistenly try to document our design and implementation and hope to |
221 standardize Portable Native Client when it gains more traction. A good | 222 standardize Portable Native Client when it gains more traction. A good |
222 example is our <a class="reference internal" href="/native-client/reference/pnac
l-bitcode-abi.html"><em>PNaCl bitcode reference manual</em></a>.</p> | 223 example is our <a class="reference internal" href="/native-client/reference/pnac
l-bitcode-abi.html"><em>PNaCl bitcode reference manual</em></a>.</p> |
| 224 <h3 id="how-can-i-contribute-to-native-client">How can I contribute to Native Cl
ient?</h3> |
| 225 <p>Read about <a class="reference internal" href="/native-client/reference/ideas
.html"><em>contributor ideas</em></a>.</p> |
223 <h3 id="what-are-the-supported-instruction-set-architectures">What are the suppo
rted instruction set architectures?</h3> | 226 <h3 id="what-are-the-supported-instruction-set-architectures">What are the suppo
rted instruction set architectures?</h3> |
224 <p>Portable Native Client uses an architecture-independent format (the | 227 <p>Portable Native Client uses an architecture-independent format (the |
225 <code>.pexe</code>) which can currently be translated to execute on processors | 228 <code>.pexe</code>) which can currently be translated to execute on processors |
226 with the x86-32, x86-64, and ARM instruction set architectures, as well | 229 with the x86-32, x86-64, and ARM instruction set architectures, as well |
227 as experimental support for MIPS. As new architectures come along and | 230 as experimental support for MIPS. As new architectures come along and |
228 become popular we expect Portable Native Client to support them without | 231 become popular we expect Portable Native Client to support them without |
229 developers having to recompile their code.</p> | 232 developers having to recompile their code.</p> |
230 <p>Native Client can currently execute on the same architectures as | 233 <p>Native Client can currently execute on the same architectures as |
231 Portable Native Client but is only supported on the Chrome Web | 234 Portable Native Client but is only supported on the Chrome Web |
232 Store. Native Client’s <code>.nexe</code> files are architecture-dependent
and | 235 Store. Native Client’s <code>.nexe</code> files are architecture-dependent
and |
233 cannot adapt to new architectures without recompilation, we therefore | 236 cannot adapt to new architectures without recompilation, we therefore |
234 deem them better suited to a web store than to the open web.</p> | 237 deem them better suited to a web store than to the open web.</p> |
235 <p>With Portable Native Client we deliver a system that has comparable | 238 <p>With Portable Native Client we deliver a system that has comparable |
236 portability to JavaScript and can adapt to new instruction set | 239 portability to JavaScript and can adapt to new instruction set |
237 architectures without requiring recompilation. The web is better when | 240 architectures without requiring recompilation. The web is better when |
238 it’s platform-independent, and we’d like it to stay that way.</p> | 241 it’s platform-independent, and we’d like it to stay that way.</p> |
239 <h3 id="do-i-have-to-use-c-or-c-i-d-really-like-to-use-another-language"><span i
d="other-languages"></span>Do I have to use C or C++? I’d really like to u
se another language.</h3> | 242 <h3 id="do-i-have-to-use-c-or-c-i-d-really-like-to-use-another-language"><span i
d="other-languages"></span>Do I have to use C or C++? I’d really like to u
se another language.</h3> |
240 <p>Right now only C and C++ are supported directly by the toolchain in the SDK.
C# | 243 <p>Right now only C and C++ are supported directly by the toolchain in the SDK.
C# |
241 and other languages in the .NET family are supported via the <a class="reference
external" href="https://github.com/elijahtaylor/mono">Mono port</a> for | 244 and other languages in the .NET family are supported via the <a class="reference
external" href="https://github.com/elijahtaylor/mono">Mono port</a> for |
242 Native Client. Moreover, there are several ongoing projects to support | 245 Native Client. Moreover, there are several ongoing projects to support |
243 additional language runtimes (e.g. <a class="reference external" href="https://c
ode.google.com/p/naclports/source/browse#svn%2Ftrunk%2Fsrc%2Fexamples%2Ftools">n
aclports supports Lua, Python and Ruby</a>) | 246 additional language runtimes (e.g. <a class="reference external" href="https://c
ode.google.com/p/naclports/source/browse#svn%2Ftrunk%2Fsrc%2Fexamples%2Ftools">n
aclports supports Lua, Python and Ruby</a>) |
244 as well as to compile more languages to LLVM’s intermediate representation | 247 as well as to compile more languages to LLVM’s intermediate representation |
245 (e.g. support <a class="reference external" href="http://halide-lang.org/">Halid
e</a>, Haskell with <a class="reference external" href="http://www.haskell.org/g
hc/docs/latest/html/users_guide/code-generators.html">GHC</a> or support Fortran
with <a class="reference external" href="https://flang-gsoc.blogspot.ie/2013/09
/end-of-gsoc-report.html">flang</a>), or | 248 (e.g. support <a class="reference external" href="http://halide-lang.org/">Halid
e</a>, Haskell with <a class="reference external" href="http://www.haskell.org/g
hc/docs/latest/html/users_guide/code-generators.html">GHC</a> or support Fortran
with <a class="reference external" href="https://flang-gsoc.blogspot.ie/2013/09
/end-of-gsoc-report.html">flang</a>), or |
246 transpile languages to C/C++ (source-to-source compilation). Even JavaScript is | 249 transpile languages to C/C++ (source-to-source compilation). Even JavaScript is |
247 supported by compiling <a class="reference external" href="https://code.google.c
om/p/v8/">V8</a> to target PNaCl.</p> | 250 supported by compiling <a class="reference external" href="https://code.google.c
om/p/v8/">V8</a> to target PNaCl.</p> |
248 <p>The PNaCl toolchain is built on LLVM and can therefore generate code from | 251 <p>The PNaCl toolchain is built on LLVM and can therefore generate code from |
249 languages such as <a class="reference external" href="http://www.rust-lang.org/"
>Rust</a>, <a class="reference external" href="https://golang.org">Go</a>, or Ob
jective-C, but there may still be a few rough | 252 languages such as <a class="reference external" href="http://www.rust-lang.org/"
>Rust</a>, <a class="reference external" href="https://golang.org">Go</a>, or Ob
jective-C, but there may still be a few rough |
250 edges.</p> | 253 edges.</p> |
251 <p>If you’re interested in getting other languages working, please contact
the | 254 <p>If you’re interested in getting other languages working, please contact
the |
252 Native Client team by way of the <a class="reference external" href="https://gro
ups.google.com/group/native-client-discuss">native-client-discuss</a> mailing li
st.</p> | 255 Native Client team by way of the <a class="reference external" href="https://gro
ups.google.com/group/native-client-discuss">native-client-discuss</a> mailing li
st, and read |
| 256 through <a class="reference internal" href="/native-client/reference/ideas.html"
><em>contributor ideas</em></a>.</p> |
253 <h3 id="do-you-only-support-chrome-what-about-other-browsers">Do you only suppor
t Chrome? What about other browsers?</h3> | 257 <h3 id="do-you-only-support-chrome-what-about-other-browsers">Do you only suppor
t Chrome? What about other browsers?</h3> |
254 <p>We aim to support multiple browsers. However, a number of features that | 258 <p>We aim to support multiple browsers. However, a number of features that |
255 we consider requirements for a production-quality system that keeps the | 259 we consider requirements for a production-quality system that keeps the |
256 user safe are difficult to implement without help from the | 260 user safe are difficult to implement without help from the |
257 browser. Specific examples are an out-of-process plugin architecture and | 261 browser. Specific examples are an out-of-process plugin architecture and |
258 appropriate interfaces for integrated 3D graphics. We have worked | 262 appropriate interfaces for integrated 3D graphics. We have worked |
259 closely with Chromium developers to deliver these features and we are | 263 closely with Chromium developers to deliver these features and we are |
260 eager to collaborate with developers from other browsers.</p> | 264 eager to collaborate with developers from other browsers.</p> |
261 <h3 id="what-s-the-difference-between-npapi-and-pepper">What’s the differe
nce between NPAPI and Pepper?</h3> | 265 <h3 id="what-s-the-difference-between-npapi-and-pepper">What’s the differe
nce between NPAPI and Pepper?</h3> |
262 <p><a class="reference internal" href="/native-client/pepper_stable/index.html">
<em>Pepper</em></a> (also known as PPAPI) is a new API that | 266 <p><a class="reference internal" href="/native-client/pepper_stable/index.html">
<em>Pepper</em></a> (also known as PPAPI) is a new API that |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
382 because of the inherent security risks and because the resulting | 386 because of the inherent security risks and because the resulting |
383 application would not be portable across operating systems. Instead, | 387 application would not be portable across operating systems. Instead, |
384 Native Client provides portable cross-OS abstractions wrapping or | 388 Native Client provides portable cross-OS abstractions wrapping or |
385 proxying OS functionality or emulating UNIX system calls. For example, | 389 proxying OS functionality or emulating UNIX system calls. For example, |
386 Native Client provides an <code>mmap()</code> system call that behaves much like | 390 Native Client provides an <code>mmap()</code> system call that behaves much like |
387 the standard UNIX <code>mmap()</code> system call.</p> | 391 the standard UNIX <code>mmap()</code> system call.</p> |
388 <h3 id="is-my-favorite-third-party-library-available-for-native-client">Is my fa
vorite third-party library available for Native Client?</h3> | 392 <h3 id="is-my-favorite-third-party-library-available-for-native-client">Is my fa
vorite third-party library available for Native Client?</h3> |
389 <p>Google has ported several third-party libraries to Native Client; such librar
ies | 393 <p>Google has ported several third-party libraries to Native Client; such librar
ies |
390 are available in the <a class="reference external" href="https://code.google.com
/p/naclports">naclports</a> project. We encourage you to contribute | 394 are available in the <a class="reference external" href="https://code.google.com
/p/naclports">naclports</a> project. We encourage you to contribute |
391 libraries to naclports, and/or to host your own ported libraries, and to let the | 395 libraries to naclports, and/or to host your own ported libraries, and to let the |
392 team know about it on <a class="reference external" href="https://groups.google.
com/group/native-client-discuss">native-client-discuss</a> when you do.</p> | 396 team know about it on <a class="reference external" href="https://groups.google.
com/group/native-client-discuss">native-client-discuss</a> when you do. You can
also read |
| 397 through <a class="reference internal" href="/native-client/reference/ideas.html"
><em>contributor ideas</em></a> to find ideas of new projects |
| 398 to port.</p> |
393 <h3 id="do-all-the-files-in-an-application-need-to-be-served-from-the-same-domai
n">Do all the files in an application need to be served from the same domain?</h
3> | 399 <h3 id="do-all-the-files-in-an-application-need-to-be-served-from-the-same-domai
n">Do all the files in an application need to be served from the same domain?</h
3> |
394 <p>The <code>.nmf</code>, and <code>.nexe</code> or <code>.pexe</code> files mus
t either be served from the | 400 <p>The <code>.nmf</code>, and <code>.nexe</code> or <code>.pexe</code> files mus
t either be served from the |
395 same origin as the embedding page or an origin that has been configured | 401 same origin as the embedding page or an origin that has been configured |
396 correctly using <a class="reference external" href="http://en.wikipedia.org/wiki
/Cross-origin_resource_sharing">CORS</a>.</p> | 402 correctly using <a class="reference external" href="http://en.wikipedia.org/wiki
/Cross-origin_resource_sharing">CORS</a>.</p> |
397 <p>For applications installed from the Chrome Web Store the Web Store manifest | 403 <p>For applications installed from the Chrome Web Store the Web Store manifest |
398 must include the correct, verified domain of the embedding page.</p> | 404 must include the correct, verified domain of the embedding page.</p> |
399 <h2 id="portability">Portability</h2> | 405 <h2 id="portability">Portability</h2> |
400 <h3 id="do-i-have-to-do-anything-special-to-make-my-application-run-on-different
-operating-systems">Do I have to do anything special to make my application run
on different operating systems?</h3> | 406 <h3 id="do-i-have-to-do-anything-special-to-make-my-application-run-on-different
-operating-systems">Do I have to do anything special to make my application run
on different operating systems?</h3> |
401 <p>No. Native Client and Portable Native Client applications run without | 407 <p>No. Native Client and Portable Native Client applications run without |
402 modification on all supported operating systems.</p> | 408 modification on all supported operating systems.</p> |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
485 you’re loading the correct <code>.nexe</code> file by building a separate | 491 you’re loading the correct <code>.nexe</code> file by building a separate |
486 <code>.nexe</code> for each architecture, and using a <code>.nmf</code> manifest
file to | 492 <code>.nexe</code> for each architecture, and using a <code>.nmf</code> manifest
file to |
487 let the browser select the correct <code>.nexe</code> file. Note: the need to | 493 let the browser select the correct <code>.nexe</code> file. Note: the need to |
488 select a processor-specific <code>.nexe</code> goes away with Portable Native | 494 select a processor-specific <code>.nexe</code> goes away with Portable Native |
489 Client.</li> | 495 Client.</li> |
490 <li>If things still aren’t working, <a class="reference internal" href="/n
ative-client/help.html"><em>ask for help</em></a>!</li> | 496 <li>If things still aren’t working, <a class="reference internal" href="/n
ative-client/help.html"><em>ask for help</em></a>!</li> |
491 </ul> | 497 </ul> |
492 </section> | 498 </section> |
493 | 499 |
494 {{/partials.standard_nacl_article}} | 500 {{/partials.standard_nacl_article}} |
OLD | NEW |