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

Unified Diff: README.rst

Issue 920953002: Subzero: Use -filetype instead of -ias and -elf-writer. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Explicitly set the output file type for unit tests Created 5 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | pydir/szbuild.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: README.rst
diff --git a/README.rst b/README.rst
index 917eca8b6a54a3961eb0cd27943d0d568804ad5b..e84dda9ee5dfbc975e0fe3411f3b6d02f9ed2906 100644
--- a/README.rst
+++ b/README.rst
@@ -61,7 +61,9 @@ following:
``-target=<TARGET>`` -- Set the target architecture. The default is x8632.
Future targets include x8664, arm32, and arm64.
- ``-integrated-as=0|1`` -- Disable/enable the integrated assembler.
+ ``-filetype=obj|asm|iasm`` -- Select the output file type. ``obj`` is a
+ native ELF file, ``asm`` is a textual assembly file, and ``iasm`` is a
+ low-level textual assembly file demonstrating the integrated assembler.
``-O<LEVEL>`` -- Set the optimization level. Valid levels are ``2``, ``1``,
``0``, ``-1``, and ``m1``. Levels ``-1`` and ``m1`` are synonyms, and
@@ -103,15 +105,16 @@ A convenient way to run both the lit tests and the cross tests is::
make -f Makefile.standalone check
-Assembling ``llvm2ice`` output
-------------------------------
+Assembling ``llvm2ice`` output as needed
+----------------------------------------
-Currently ``llvm2ice`` produces textual assembly code in a structure suitable
-for input to ``llvm-mc``. An object file can be produced using the command::
+``llvm2ice`` can now produce a native ELF binary using ``-filetype=obj``.
- llvm-mc -arch=x86 -filetype=obj -o=MyObj.o
+``llvm2ice`` can also produce textual assembly code in a structure suitable for
+input to ``llvm-mc``, using ``-filetype=asm`` or ``-filetype=iasm``. An object
+file can then be produced using the command::
-In the future, the integrated assembler will directly produce ELF object files.
+ llvm-mc -arch=x86 -filetype=obj -o=MyObj.o
Building a translated binary
----------------------------
« no previous file with comments | « no previous file | pydir/szbuild.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698