OLD | NEW |
1 {{+bindTo:partials.standard_nacl_article}} | 1 {{+bindTo:partials.standard_nacl_article}} |
2 | 2 |
3 <section id="native-client-manifest-nmf-format"> | 3 <section id="native-client-manifest-nmf-format"> |
4 <h1 id="native-client-manifest-nmf-format">Native Client Manifest (nmf) Format</
h1> | 4 <h1 id="native-client-manifest-nmf-format">Native Client Manifest (nmf) Format</
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><a class="reference internal" href="#overview" id="id1">Overview</a></li> | 7 <li><a class="reference internal" href="#overview" id="id1">Overview</a></li> |
8 <li><a class="reference internal" href="#field-summary" id="id2">Field summary</
a></li> | 8 <li><a class="reference internal" href="#field-summary" id="id2">Field summary</
a></li> |
9 <li><p class="first"><a class="reference internal" href="#field-details" id="id3
">Field details</a></p> | 9 <li><p class="first"><a class="reference internal" href="#field-details" id="id3
">Field details</a></p> |
10 <ul class="small-gap"> | 10 <ul class="small-gap"> |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 of URLs, one URL for each supported architecture (currently the choices | 54 of URLs, one URL for each supported architecture (currently the choices |
55 are “arm”, “x86-32”, and “x86-64”). For a dy
namically linked executable, | 55 are “arm”, “x86-32”, and “x86-64”). For a dy
namically linked executable, |
56 <code>program</code> is the dynamic loader used to load the dynamic executable | 56 <code>program</code> is the dynamic loader used to load the dynamic executable |
57 and its dynamic libraries. See the <a class="reference internal" href="#nmf-url
-resolution"><em>semantics</em></a> | 57 and its dynamic libraries. See the <a class="reference internal" href="#nmf-url
-resolution"><em>semantics</em></a> |
58 section for the rules on URL resolution.</p> | 58 section for the rules on URL resolution.</p> |
59 <section id="example-of-a-program-for-portable-native-client"> | 59 <section id="example-of-a-program-for-portable-native-client"> |
60 <h4 id="example-of-a-program-for-portable-native-client">Example of a <code>prog
ram</code> for Portable Native Client:</h4> | 60 <h4 id="example-of-a-program-for-portable-native-client">Example of a <code>prog
ram</code> for Portable Native Client:</h4> |
61 <pre class="prettyprint"> | 61 <pre class="prettyprint"> |
62 { | 62 { |
63 "program": { | 63 "program": { |
64 "pnacl-translate": { | 64 "portable": { |
65 // url is required | 65 // Required |
66 "url": "url_to_my_pexe", | 66 "pnacl-translate": { |
| 67 // url is required |
| 68 "url": "url_to_my_pexe", |
67 | 69 |
68 // optlevel is optional | 70 // optlevel is optional |
69 "optlevel": 2 | 71 "optlevel": 2 |
70 }, | 72 }, |
71 // pnacl-debug is optional | 73 // pnacl-debug is optional |
72 "pnacl-debug": { | 74 "pnacl-debug": { |
73 // url is required | 75 // url is required |
74 "url": "url_to_my_bitcode_bc", | 76 "url": "url_to_my_bitcode_bc", |
75 | 77 |
76 // optlevel is optional | 78 // optlevel is optional |
77 "optlevel": 0 | 79 "optlevel": 0 |
| 80 } |
78 } | 81 } |
79 } | 82 } |
80 } | 83 } |
81 </pre> | 84 </pre> |
82 <p>Portable Native Client applications can also specify an <code>optlevel</code>
field. | 85 <p>Portable Native Client applications can also specify an <code>optlevel</code>
field. |
83 The <code>optlevel</code> field is an optimization level <em>hint</em>, which is
a number | 86 The <code>optlevel</code> field is an optimization level <em>hint</em>, which is
a number |
84 (zero and higher). Higher numbers indicate more optimization effort. | 87 (zero and higher). Higher numbers indicate more optimization effort. |
85 Setting a higher optimization level will improve the application’s | 88 Setting a higher optimization level will improve the application’s |
86 performance, but it will also slow down the first load experience. | 89 performance, but it will also slow down the first load experience. |
87 The default is <code>optlevel</code> is currently <code>2</code>, and values hig
her | 90 The default is <code>optlevel</code> is currently <code>2</code>, and values hig
her |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 inline with a data URI can help reduce the amount of network traffic | 241 inline with a data URI can help reduce the amount of network traffic |
239 required to load the Native Client application.</p> | 242 required to load the Native Client application.</p> |
240 </section><section id="url-resolution"> | 243 </section><section id="url-resolution"> |
241 <span id="nmf-url-resolution"></span><h3 id="url-resolution"><span id="nmf-url-r
esolution"></span>URL resolution</h3> | 244 <span id="nmf-url-resolution"></span><h3 id="url-resolution"><span id="nmf-url-r
esolution"></span>URL resolution</h3> |
242 <p>All URLs contained in a manifest are resolved relative to the URL of | 245 <p>All URLs contained in a manifest are resolved relative to the URL of |
243 the manifest. If the manifest was specified as a data URI, the URLs must | 246 the manifest. If the manifest was specified as a data URI, the URLs must |
244 all be absolute.</p> | 247 all be absolute.</p> |
245 </section></section></section> | 248 </section></section></section> |
246 | 249 |
247 {{/partials.standard_nacl_article}} | 250 {{/partials.standard_nacl_article}} |
OLD | NEW |