Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
GNU Assembler
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===Directives=== GAS uses assembler [[directive (programming)|directives]] (also known as pseudo ops), which are keywords beginning with a period that behave similarly to preprocessor directives in the [[C (programming language)|C programming language]]. While most of the available assembler directives are valid regardless of the target architecture, some directives are machine dependent.<ref>{{cite web | title = The GNU Assembler - Assembler Directives | url = http://sources.redhat.com/binutils/docs-2.12/as.info/Pseudo-Ops.html#Pseudo%20Ops | access-date = 2008-04-13 | archive-date = 2012-02-22 | archive-url = https://web.archive.org/web/20120222005603/http://sources.redhat.com/binutils/docs-2.12/as.info/Pseudo-Ops.html#Pseudo%20Ops | url-status = dead }}</ref> Since version 2.10, Intel syntax can be used through use of the <code>.intel_syntax</code> directive.<ref>{{cite web| title = GNU Assembler News| url = https://sourceware.org/git/?p=binutils-gdb.git;a=blob;f=gas/NEWS;hb=HEAD |quote=A new pseudo-op .intel_syntax has been implemented to allow gas to parse i386 assembly programs with intel syntax.}}</ref><ref>{{cite web| title = AT&T Syntax versus Intel Syntax| url = http://sources.redhat.com/binutils/docs-2.12/as.info/i386-Syntax.html| access-date = 28 July 2014| archive-date = 20 June 2011| archive-url = https://web.archive.org/web/20110620054249/http://sources.redhat.com/binutils/docs-2.12/as.info/i386-Syntax.html| url-status = dead}}</ref><ref>{{cite web| title = Linux assemblers: A comparison of GAS and NASM| author = Ram Narayan| date = 2007-10-17| publisher = IBM DeveloperWorks| url = http://www.ibm.com/developerworks/linux/library/l-gas-nasm.html| archive-url = https://web.archive.org/web/20090303224539/http://ibm.com/developerworks/linux/library/l-gas-nasm.html| archive-date = 3 March 2009| access-date = 28 July 2014}}</ref>
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)