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

Side by Side Diff: pnacl/driver/pnacl-translate.py

Issue 1541863002: PNaCl. Enables x32 libraries for non-sfi runtime. (Closed) Base URL: https://chromium.googlesource.com/native_client/src/native_client.git@master
Patch Set: Addresses comments. Created 4 years, 12 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
« no previous file with comments | « pnacl/driver/driver_log.py ('k') | src/nonsfi/irt/irt_interfaces.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 # Copyright (c) 2012 The Native Client Authors. All rights reserved. 2 # Copyright (c) 2012 The Native Client Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 import driver_tools 6 import driver_tools
7 import filetype 7 import filetype
8 import ldtools 8 import ldtools
9 import multiprocessing 9 import multiprocessing
10 import os 10 import os
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 'nacl': 233 'nacl':
234 {'X8632': 'i686-linux-gnu', 234 {'X8632': 'i686-linux-gnu',
235 'ARM': 'armv7a-linux-gnueabihf'}} 235 'ARM': 'armv7a-linux-gnueabihf'}}
236 else: 236 else:
237 triple_map = { 237 triple_map = {
238 'nacl': 238 'nacl':
239 {'X8632': 'i686-none-nacl-gnu', 239 {'X8632': 'i686-none-nacl-gnu',
240 'X8664': 'x86_64-none-nacl-gnu', 240 'X8664': 'x86_64-none-nacl-gnu',
241 'ARM': 'armv7a-none-nacl-gnueabihf', 241 'ARM': 'armv7a-none-nacl-gnueabihf',
242 'MIPS32': 'mipsel-none-nacl-gnu'}, 242 'MIPS32': 'mipsel-none-nacl-gnu'},
243 'linux': {'X8632': 'i686-linux-gnu'}, 243 'linux':
244 {'X8632': 'i686-linux-gnu',
245 'X8664': 'x86_64-linux-gnux32'},
244 'mac': {'X8632': 'i686-apple-darwin'}} 246 'mac': {'X8632': 'i686-apple-darwin'}}
245 env.set('TRIPLE', triple_map[env.getone('TARGET_OS')][base_arch]) 247 env.set('TRIPLE', triple_map[env.getone('TARGET_OS')][base_arch])
246 248
247 # CPU that is representative of baseline feature requirements for NaCl 249 # CPU that is representative of baseline feature requirements for NaCl
248 # and/or chrome. We may want to make this more like "-mtune" 250 # and/or chrome. We may want to make this more like "-mtune"
249 # by specifying both "-mcpu=X" and "-mattr=+feat1,-feat2,...". 251 # by specifying both "-mcpu=X" and "-mattr=+feat1,-feat2,...".
250 # Note: this may be different from the in-browser translator, which may 252 # Note: this may be different from the in-browser translator, which may
251 # do auto feature detection based on CPUID, but constrained by what is 253 # do auto feature detection based on CPUID, but constrained by what is
252 # accepted by NaCl validators. 254 # accepted by NaCl validators.
253 cpu_map = { 255 cpu_map = {
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after
593 -S Generate native assembly only. 595 -S Generate native assembly only.
594 -c Generate native object file only. 596 -c Generate native object file only.
595 --use-sz Use the Subzero fast translator. 597 --use-sz Use the Subzero fast translator.
596 --pnacl-sb Use the translator which runs inside the NaCl sandbox. 598 --pnacl-sb Use the translator which runs inside the NaCl sandbox.
597 Applies to both pnacl-llc and pnacl-sz translators. 599 Applies to both pnacl-llc and pnacl-sz translators.
598 -O[0-3] Change translation-time optimization level. 600 -O[0-3] Change translation-time optimization level.
599 -threads=<num> Use <num> parallel threads for translation. 601 -threads=<num> Use <num> parallel threads for translation.
600 -threads=auto Automatically determine number of translation threads. 602 -threads=auto Automatically determine number of translation threads.
601 -threads=seq Use the minimal number of threads for translation. 603 -threads=seq Use the minimal number of threads for translation.
602 """ 604 """
OLDNEW
« no previous file with comments | « pnacl/driver/driver_log.py ('k') | src/nonsfi/irt/irt_interfaces.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698