Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(86)

Side by Side Diff: native_client_sdk/src/doc/reference/nacl-manifest-format.rst

Issue 394283002: [NaCl SDK]: Docs -- fix typo in nacl manifest specification (missing "portable") (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « native_client_sdk/doc_generated/reference/nacl-manifest-format.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 ################################### 1 ###################################
2 Native Client Manifest (nmf) Format 2 Native Client Manifest (nmf) Format
3 ################################### 3 ###################################
4 4
5 .. contents:: 5 .. contents::
6 :local: 6 :local:
7 :backlinks: none 7 :backlinks: none
8 :depth: 2 8 :depth: 2
9 9
10 Overview 10 Overview
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 and its dynamic libraries. See the :ref:`semantics <nmf_url_resolution>` 49 and its dynamic libraries. See the :ref:`semantics <nmf_url_resolution>`
50 section for the rules on URL resolution. 50 section for the rules on URL resolution.
51 51
52 Example of a ``program`` for Portable Native Client: 52 Example of a ``program`` for Portable Native Client:
53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
54 54
55 .. naclcode:: 55 .. naclcode::
56 56
57 { 57 {
58 "program": { 58 "program": {
59 "pnacl-translate": { 59 "portable": {
60 // url is required 60 // Required
61 "url": "url_to_my_pexe", 61 "pnacl-translate": {
62 // url is required
63 "url": "url_to_my_pexe",
62 64
63 // optlevel is optional 65 // optlevel is optional
64 "optlevel": 2 66 "optlevel": 2
65 }, 67 },
66 // pnacl-debug is optional 68 // pnacl-debug is optional
67 "pnacl-debug": { 69 "pnacl-debug": {
68 // url is required 70 // url is required
69 "url": "url_to_my_bitcode_bc", 71 "url": "url_to_my_bitcode_bc",
70 72
71 // optlevel is optional 73 // optlevel is optional
72 "optlevel": 0 74 "optlevel": 0
75 }
73 } 76 }
74 } 77 }
75 } 78 }
76 79
77 Portable Native Client applications can also specify an ``optlevel`` field. 80 Portable Native Client applications can also specify an ``optlevel`` field.
78 The ``optlevel`` field is an optimization level *hint*, which is a number 81 The ``optlevel`` field is an optimization level *hint*, which is a number
79 (zero and higher). Higher numbers indicate more optimization effort. 82 (zero and higher). Higher numbers indicate more optimization effort.
80 Setting a higher optimization level will improve the application's 83 Setting a higher optimization level will improve the application's
81 performance, but it will also slow down the first load experience. 84 performance, but it will also slow down the first load experience.
82 The default is ``optlevel`` is currently ``2``, and values higher 85 The default is ``optlevel`` is currently ``2``, and values higher
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 required to load the Native Client application. 265 required to load the Native Client application.
263 266
264 .. _nmf_url_resolution: 267 .. _nmf_url_resolution:
265 268
266 URL resolution 269 URL resolution
267 -------------- 270 --------------
268 271
269 All URLs contained in a manifest are resolved relative to the URL of 272 All URLs contained in a manifest are resolved relative to the URL of
270 the manifest. If the manifest was specified as a data URI, the URLs must 273 the manifest. If the manifest was specified as a data URI, the URLs must
271 all be absolute. 274 all be absolute.
OLDNEW
« no previous file with comments | « native_client_sdk/doc_generated/reference/nacl-manifest-format.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698