X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=doc%2Fnasmdoc.src;h=30250918b3fb1575c6b0d4a2eca40a4d84cef719;hb=HEAD;hp=fb628258bb6ecee7d2e5d8492354ac25177142ff;hpb=640edfd78490a40c0544d4eba406bded5d32542a;p=platform%2Fupstream%2Fnasm.git diff --git a/doc/nasmdoc.src b/doc/nasmdoc.src index fb62825..3025091 100644 --- a/doc/nasmdoc.src +++ b/doc/nasmdoc.src @@ -1,6 +1,6 @@ \# -------------------------------------------------------------------------- \# -\# Copyright 1996-2010 The NASM Authors - All Rights Reserved +\# Copyright 1996-2013 The NASM Authors - All Rights Reserved \# See the file AUTHORS included with the NASM distribution for \# the specific copyright holders. \# @@ -35,16 +35,16 @@ \# \M{category}{Programming} \M{title}{NASM - The Netwide Assembler} -\M{year}{1996-2010} +\M{year}{1996-2012} \M{author}{The NASM Development Team} \M{copyright_tail}{-- All Rights Reserved} \M{license}{This document is redistributable under the license given in the file "LICENSE" distributed in the NASM archive.} -\M{auxinfo}{This release is dedicated to the memory of Charles A. Crayne. We miss you, Chuck.} \M{summary}{This file documents NASM, the Netwide Assembler: an assembler targetting the Intel x86 series of processors, with portable source.} \M{infoname}{NASM} \M{infofile}{nasm} \M{infotitle}{The Netwide Assembler for x86} \M{epslogo}{nasmlogo.eps} +\M{logoyadj}{-72} \IR{-D} \c{-D} option \IR{-E} \c{-E} option \IR{-F} \c{-F} option @@ -161,6 +161,7 @@ in \c{elf} \IR{elf shared libraries} ELF, shared libraries \IR{elf32} \c{elf32} \IR{elf64} \c{elf64} +\IR{elfx32} \c{elfx32} \IR{executable and linkable format} Executable and Linkable Format \IR{extern, obj extensions to} \c{EXTERN}, \c{obj} extensions to \IR{extern, rdf extensions to} \c{EXTERN}, \c{rdf} extensions to @@ -240,6 +241,7 @@ Object File Format \IA{sib}{sib byte} \IR{sib byte} SIB byte \IR{align, smart} \c{ALIGN}, smart +\IA{sectalign}{sectalign} \IR{solaris x86} Solaris x86 \IA{standard section names}{standardized section names} \IR{symbols, exporting from dlls} symbols, exporting from DLLs @@ -334,7 +336,7 @@ distribution archive, for the license conditions under which you may use NASM. NASM is now under the so-called 2-clause BSD license, also known as the simplified BSD license. -Copyright 1996-2010 the NASM Authors - All rights reserved. +Copyright 1996-2011 the NASM Authors - All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are @@ -520,11 +522,11 @@ For Microsoft object file formats (\c{obj}, \c{win32} and \c{win64}), it will remove the \c{.asm} \i{extension} (or whatever extension you like to use - NASM doesn't care) from your source file name and substitute \c{.obj}. For Unix object file formats (\c{aout}, \c{as86}, -\c{coff}, \c{elf32}, \c{elf64}, \c{ieee}, \c{macho32} and \c{macho64}) -it will substitute \c{.o}. For \c{dbg}, \c{rdf}, \c{ith} and \c{srec}, -it will use \c{.dbg}, \c{.rdf}, \c{.ith} and \c{.srec}, respectively, -and for the \c{bin} format it will simply remove the extension, so -that \c{myfile.asm} produces the output file \c{myfile}. +\c{coff}, \c{elf32}, \c{elf64}, \c{elfx32}, \c{ieee}, \c{macho32} and +\c{macho64}) it will substitute \c{.o}. For \c{dbg}, \c{rdf}, \c{ith} +and \c{srec}, it will use \c{.dbg}, \c{.rdf}, \c{.ith} and \c{.srec}, +respectively, and for the \c{bin} format it will simply remove the +extension, so that \c{myfile.asm} produces the output file \c{myfile}. If the output file already exists, NASM will overwrite it, unless it has the same name as the input file, in which case it will give a @@ -624,7 +626,8 @@ specified by the \c{-o} option. The \c{-MQ} option acts as the \c{-MT} option, except it tries to quote characters that have special meaning in Makefile syntax. This is not foolproof, as not all characters with special meaning are -quotable in Make. +quotable in Make. The default output (if no \c{-MT} or \c{-MQ} option +is specified) is automatically quoted. \S{opt-MP} The \i\c{-MP} Option: Emit phony targets @@ -843,10 +846,6 @@ with a \i{stub preprocessor} which does nothing. \S{opt-O} The \i\c{-O} Option: Specifying \i{Multipass Optimization} -NASM defaults to not optimizing operands which can fit into a signed byte. -This means that if you want the shortest possible object code, -you have to enable optimization. - Using the \c{-O} option, you can tell NASM to carry out different levels of optimization. The syntax is: @@ -862,11 +861,12 @@ levels of optimization. The syntax is: \b \c{-Ox} (where \c{x} is the actual letter \c{x}): Multipass optimization. Minimize branch offsets and signed immediate bytes, overriding size specification unless the \c{strict} keyword - has been used (see \k{strict}). For compatability with earlier + has been used (see \k{strict}). For compatibility with earlier releases, the letter \c{x} may also be any number greater than one. This number has no effect on the actual number of passes. -The \c{-Ox} mode is recommended for most uses. +The \c{-Ox} mode is recommended for most uses, and is the default +since NASM 2.09. Note that this is a capital \c{O}, and is different from a small \c{o}, which is used to specify the output file name. See \k{opt-o}. @@ -949,6 +949,17 @@ Enabled by default. \b \i\c{user} controls \c{%warning} directives (see \k{pperror}). Enabled by default. +\b \i\c{lock} warns about \c{LOCK} prefixes on unlockable instructions. +Enabled by default. + +\b \i\c{hle} warns about invalid use of the HLE \c{XACQUIRE} or \c{XRELEASE} +prefixes. +Enabled by default. + +\b \i\c{bnd} warns about ineffective use of the \c{BND} prefix when a relaxed +form of jmp instruction becomes jmp short form. +Enabled by default. + \b \i\c{error} causes warnings to be treated as errors. Disabled by default. @@ -973,6 +984,9 @@ and the date on which it was compiled. You will need the version number if you report a bug. +For command-line compatibility with Yasm, the form \i\c{--v} is also +accepted for this option. + \S{opt-y} The \i\c{-y} Option: Display Available Debug Info Formats Typing \c{nasm -f