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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 // url is required | 70 // url is required |
71 "url": "url_to_my_bitcode_bc", | 71 "url": "url_to_my_bitcode_bc", |
72 | 72 |
73 // optlevel is optional | 73 // optlevel is optional |
74 "optlevel": 0 | 74 "optlevel": 0 |
75 } | 75 } |
76 } | 76 } |
77 } | 77 } |
78 } | 78 } |
79 </pre> | 79 </pre> |
80 <p>Portable Native Client applications can also specify an <code>optlevel</code>
field. | 80 <p id="pnacl-nmf-optlevels">Portable Native Client applications can also specify
an <code>optlevel</code> field. |
81 The <code>optlevel</code> field is an optimization level <em>hint</em>, which is
a number | 81 The <code>optlevel</code> field is an optimization level <em>hint</em>, which is
a number |
82 (zero and higher). Higher numbers indicate more optimization effort. | 82 (zero and higher). Higher numbers indicate more optimization effort. |
83 Setting a higher optimization level will improve the application’s | 83 Setting a higher optimization level will improve the application’s |
84 performance, but it will also slow down the first load experience. | 84 performance, but it will also slow down the first load experience. |
85 The default is <code>optlevel</code> is currently <code>2</code>, and values hig
her | 85 The default is <code>optlevel</code> is currently <code>2</code>, and values hig
her |
86 than 2 are no different than 2. If compute speed is not as important | 86 than 2 are no different than 2. If compute speed is not as important |
87 as first load speed, an application could specify an <code>optlevel</code> | 87 as first load speed, an application could specify an <code>optlevel</code> |
88 of <code>0</code>. Note that <code>optlevel</code> is only a <em>hint</em>. In t
he future, the | 88 of <code>0</code>. Note that <code>optlevel</code> is only a <em>hint</em>. In t
he future, the |
89 Portable Native Client translator and runtime may <em>automatically</em> choose | 89 Portable Native Client translator and runtime may <em>automatically</em> choose |
90 an <code>optlevel</code> to best balance load time and application performance.<
/p> | 90 an <code>optlevel</code> to best balance load time and application performance.<
/p> |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 representing the contents of the file. Specifying the <code>nmf</code> contents | 227 representing the contents of the file. Specifying the <code>nmf</code> contents |
228 inline with a data URI can help reduce the amount of network traffic | 228 inline with a data URI can help reduce the amount of network traffic |
229 required to load the Native Client application.</p> | 229 required to load the Native Client application.</p> |
230 <h3 id="url-resolution"><span id="nmf-url-resolution"></span>URL resolution</h3> | 230 <h3 id="url-resolution"><span id="nmf-url-resolution"></span>URL resolution</h3> |
231 <p>All URLs contained in a manifest are resolved relative to the URL of | 231 <p>All URLs contained in a manifest are resolved relative to the URL of |
232 the manifest. If the manifest was specified as a data URI, the URLs must | 232 the manifest. If the manifest was specified as a data URI, the URLs must |
233 all be absolute.</p> | 233 all be absolute.</p> |
234 </section> | 234 </section> |
235 | 235 |
236 {{/partials.standard_nacl_article}} | 236 {{/partials.standard_nacl_article}} |
OLD | NEW |