1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 21:42:08 +02:00
tldr/pages/osx/as.md
Emily Grace Seville aa7ba084cf
osx/as.md: update placeholders
* Make placeholders recognizable by CLIP converter

- https://github.com/command-line-interface-pages/prototypes/pull/32

* Update pages/osx/as.md

---------

Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2023-02-19 18:02:05 +05:30

642 B

as

Portable GNU assembler. Primarily intended to assemble output from gcc to be used by ld. More information: https://www.unix.com/man-page/osx/1/as/.

  • Assemble a file, writing the output to a.out:

as {{path/to/file.s}}

  • Assemble the output to a given file:

as {{path/to/file.s}} -o {{path/to/output_file.o}}

  • Generate output faster by skipping whitespace and comment preprocessing. (Should only be used for trusted compilers):

as -f {{path/to/file.s}}

  • Include a given path to the list of directories to search for files specified in .include directives:

as -I {{path/to/directory}} {{path/to/file.s}}