| OLD | NEW |
| 1 About | 1 About |
| 2 ===== | 2 ===== |
| 3 | 3 |
| 4 This directory contains the necessary components to run Non-SFI NaCl | 4 This directory contains the necessary components to run Non-SFI NaCl |
| 5 nexes (native executables) from within Mojo. | 5 nexes (native executables) from within Mojo. |
| 6 | 6 |
| 7 Using | 7 Using |
| 8 ===== | 8 ===== |
| 9 | 9 |
| 10 The Non-SFI NaCl and accompanying tests should be built by default for Linux. | 10 The Non-SFI NaCl and accompanying tests should be built by default for Linux. |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 $ ./out/Debug/clang_x86/monacl_shell_nonsfi FOOBAR.nexe | 37 $ ./out/Debug/clang_x86/monacl_shell_nonsfi FOOBAR.nexe |
| 38 ``` | 38 ``` |
| 39 | 39 |
| 40 This monacl_shell_nonsfi is the easiest way to run nexes in Mojo -- however, it | 40 This monacl_shell_nonsfi is the easiest way to run nexes in Mojo -- however, it |
| 41 is not the only way. Usually, applications are launched through the | 41 is not the only way. Usually, applications are launched through the |
| 42 "mojo_shell", but some additional information is required to know how to handle | 42 "mojo_shell", but some additional information is required to know how to handle |
| 43 this content (i.e., how does the mojo_shell know it is dealing with a nonsfi | 43 this content (i.e., how does the mojo_shell know it is dealing with a nonsfi |
| 44 nexe?). | 44 nexe?). |
| 45 | 45 |
| 46 The BUILD.gn files in Mojo automatically make this pexe, translate it to a | 46 The BUILD.gn files in Mojo automatically make this pexe, translate it to a |
| 47 nexe, and prepend a line ("#!mojo mojo:nacl_content_handler_nonsfi") to the | 47 nexe, and prepend a line ("#!mojo mojo:content_handler_nonsfi_nexe") to the |
| 48 front of the file, at which point it is also runnable through the mojo_shell. | 48 front of the file, at which point it is also runnable through the mojo_shell. |
| 49 These files, which start with this "#!" line, are ".mojo" files. The nexes can | 49 These files, which start with this "#!" line, are ".mojo" files. The nexes can |
| 50 be run like this: | 50 be run like this: |
| 51 | 51 |
| 52 ``` | 52 ``` |
| 53 $ ./out/Debug/mojo_shell --enable-multiprocess out/Debug/FOOBAR.mojo | 53 $ ./out/Debug/mojo_shell --enable-multiprocess out/Debug/FOOBAR.mojo |
| 54 ``` | 54 ``` |
| 55 | 55 |
| 56 TODO | 56 TODO |
| 57 ==== | 57 ==== |
| 58 | 58 |
| 59 * Enable content handling of Non-SFI pexes, which should be translated and run | 59 * Use subzero (a NaCl project to improve translation speed) for pexe |
| 60 as nexes. | 60 translation. |
| 61 * Use subzero (a NaCl project to improve translation speed) for pexe | 61 * Enable caching of translated pexes. |
| 62 translation. | |
| 63 * Enable caching of translated pexes. | |
| OLD | NEW |