PROPHET/OS
NAME
as: assembles x86_64 text in the GNU style the .S files of this tree are written in, after the preprocessor, and writes the object
SYNOPSIS
as <input.s> <output>
DESCRIPTION
Assembles x86_64 text in the GNU style the .S files of this tree are written in, after the preprocessor, and writes the object. Exit 0 when it is written, 1 when the text is refused, with the line and the reason, 2 when a file cannot be read or written.
It serves what the tree measurably uses (tools/selfbuild.py): the 238 mnemonics, labels and numeric labels, expressions, sections, and the directives with .macro, .rept, .irp, .if and .altmacro. Jumps are as short as their targets allow, the way the reference assembler makes them, and cc/tools/compare/asmcheck.py holds every mnemonic and every .S file of the tree against it byte for byte.
What it writes
Today the neutral form: one line per section with its bytes, per relocation and per symbol. ELF follows through the writer of the linker as soon as that writer takes several sections.
EXAMPLE
$ as --help as <input.s> <output> assembles x86_64 text after the preprocessor 0 when it is written, 1 when the text is refused, 2 on an error of a file