Stand-alone MIPS Assembler

The MIPS edition of Visual C++ includes a stand-alone assembler. The assembler does not have all of the restrictions that inline assembly does; in particular, using the stand-alone assembler is the only way to create functions written only in assembly code. However, in some respects the stand-alone assembler is less convenient, because you cannot refer as easily to objects in C and C++ source code.

MIPS stand-alone assembler driver is Mipsasm.exe. Mipsasm recognizes assembly language source files that end with .asm or .s file extensions.

The following example shows how to assemble and link prog.asm into an executable in one step from the command line.

mipsasm -DMIPS -QMmips2 prog.asm /link /entry:mainACRTStartup
    /subsystem:windowsce /nodefaultlib corelibc.lib coredll.lib

The next example shows how to assemble an assembly language source file into an object file without linking, using the "-c" assembler switch.

mipsasm -DMIPS -QMmips2 -c prog.asm

To see more assembler options, type the following at the command line:

mipsasm /?

See Also

MIPS Guide | MIPS Calling Sequence Specification | MIPS Device Inline Assembly Language

 Last updated on Thursday, April 08, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.