GNU Assembler
| Stable release | 2.20 / {{Expansion depth limit exceeded|2009|10|19}} |
|---|---|
| Platform | Cross-platform |
| Website | http://www.gnu.org/software/binutils/ |
The GNU Assembler, commonly known as Gas, is the assembler used by the GNU Project. It is the default back-end of gcc. It is used to compile the GNU operating system and the Linux kernel, and various other software. It is a part of the GNU Binutils package.
Gas's executable is named after as, a Unix assembler. Gas is cross-platform, and both runs on and assembles for a number of different computer architectures. Released under the GNU General Public License, Gas is free software.
General syntax
The GNU Assembler has a general syntax that works for all of the supported architectures. The general syntax includes assembler directives and a method for commenting.
Assembler directives
The GNU Assembler uses assembler directives (also known as pseudo ops), which are keywords beginning with a period that behave similarly to preprocessor directives in the C programming language. While most of the available assembler directives are valid regardless of the target architecture, some directives are machine dependent.[1]
Comments
Gas uses the # symbol for a single-line comment.
For example:
pop %edx # this is a comment
# as well as this
movl %edx,%eax
Criticisms
One source of criticism is the fact that on the x86 and x86-64 architecture it uses the AT&T assembler syntax, rather than the Intel syntax used in many other assemblers; however, since version 2.10[2], support for the Intel syntax via the .intel_syntax directive has been added.[3][4]
See also
References
- ↑ [{{Expansion depth limit exceeded||}} "The GNU Assembler - Assembler Directives"]. {{Expansion depth limit exceeded||}}.
- ↑ [{{Expansion depth limit exceeded||}} "GNU Assembler News"]. {{Expansion depth limit exceeded||}}.
- ↑ [{{Expansion depth limit exceeded||}} "AT&T Syntax versus Intel Syntax"]. [{{Expansion depth limit exceeded|{{{Expansion depth limit exceeded}}} |{{Expansion depth limit exceeded|{{Expansion depth limit exceeded| http://www.pubmedcentral.nih.gov/articlerender.fcgi?tool=pmcentrez&artid={{{Expansion depth limit exceeded}}} }}}} }} Using as, the GNU Assembler]. {{Expansion depth limit exceeded||}}.
- ↑ Ram Narayan (2007-10-17). [{{Expansion depth limit exceeded||}} "Linux assemblers: A comparison of GAS and NASM"]. IBM DeveloperWorks. {{Expansion depth limit exceeded||}}. Retrieved 2007-10-17.
External links
| Search Wikibooks | The Wikibook [[:{{Expansion depth limit exceeded| {{{Expansion depth limit exceeded}}}:{{Expansion depth limit exceeded| {{{Expansion depth limit exceeded}}}:
}} | {{Expansion depth limit exceeded| {{{Expansion depth limit exceeded}}}
| {{Expansion depth limit exceeded}}
}}
}}{{Expansion depth limit exceeded| #{{{Expansion depth limit exceeded}}} }}|{{Expansion depth limit exceeded| {{{Expansion depth limit exceeded}}} | {{Expansion depth limit exceeded| {{{Expansion depth limit exceeded}}}:{{Expansion depth limit exceeded| {{{Expansion depth limit exceeded}}}: }}
|
{{Expansion depth limit exceeded| {{{Expansion depth limit exceeded}}}
| {{Expansion depth limit exceeded}}
}}
}}{{Expansion depth limit exceeded| ?
| {{Expansion depth limit exceeded| #{{{Expansion depth limit exceeded}}}
}}
}}
}}]] has a page on the topic of [[:{{Expansion depth limit exceeded| project =
| pagename =
| anchor =
}}|{{Expansion depth limit exceeded| project =
| pagename =
| text =
| anchor =
}}]] |
| |||||||||||||||||||
cs:GNU Assembler es:GNU Assembler fr:GNU Assembler ja:GNUアセンブラ tr:GNU Assembler
If you like SEOmastering Site, you can support it by - BTC: bc1qppjcl3c2cyjazy6lepmrv3fh6ke9mxs7zpfky0 , TRC20 and more...