Migration: migration from Caps to OP · kevinhartman/cpp-docs@6ba3aa8 · GitHub
Skip to content

Commit 6ba3aa8

Browse files
committed
Migration: migration from Caps to OP
1 parent 04f9f5a commit 6ba3aa8

18,341 files changed

Lines changed: 1620709 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

docs/TOC.md

Lines changed: 41 additions & 0 deletions

docs/assembler/arm/TOC.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# [ARM Assembler Reference](arm-assembler-reference.md)
2+
# [ARM Assembler Command-Line Reference](arm-assembler-command-line-reference.md)
3+
# [ARM Assembler Directives](arm-assembler-directives.md)
4+
# [ARM Assembler Diagnostic Messages](arm-assembler-diagnostic-messages.md)
Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
---
2+
title: "ARM Assembler Command-Line Reference | Microsoft Docs"
3+
ms.custom: ""
4+
ms.date: "11/04/2016"
5+
ms.prod: "visual-studio-dev14"
6+
ms.reviewer: ""
7+
ms.suite: ""
8+
ms.technology:
9+
- "devlang-cpp"
10+
ms.tgt_pltfrm: ""
11+
ms.topic: "article"
12+
dev_langs:
13+
- "C++"
14+
ms.assetid: f7b89478-1ab5-4995-8cde-a805f0462c45
15+
caps.latest.revision: 12
16+
author: "corob-msft"
17+
ms.author: "corob"
18+
manager: "ghogen"
19+
translation.priority.ht:
20+
- "cs-cz"
21+
- "de-de"
22+
- "es-es"
23+
- "fr-fr"
24+
- "it-it"
25+
- "ja-jp"
26+
- "ko-kr"
27+
- "pl-pl"
28+
- "pt-br"
29+
- "ru-ru"
30+
- "tr-tr"
31+
- "zh-cn"
32+
- "zh-tw"
33+
---
34+
# ARM Assembler Command-Line Reference
35+
This article provides command-line information about the Microsoft ARM assembler, *armasm*, which compiles ARMv7 Thumb assembly language into the Microsoft implementation of the Common Object File Format (COFF). The linker can link COFF code with object code that is produced by the ARM assembler or by the C compiler, together with object libraries that are created by the librarian.
36+
37+
## Syntax
38+
39+
```
40+
armasm [[options]] sourcefile objectfile
41+
```
42+
43+
```
44+
armasm [[options]] -o objectfile sourcefile
45+
```
46+
47+
#### Parameters
48+
`options`
49+
-errors `filename`
50+
Redirect error and warning messages to `filename`.
51+
52+
-i `dir[;dir]`
53+
Add the specified directories to the include search path.
54+
55+
-predefine `directive`
56+
Specify a SETA, SETL, or SETS directive to predefine a symbol. Example: **armasm.exe -predefine "COUNT SETA 150" source.asm**. For more information, see the [ARM assembler tools guide](http://go.microsoft.com/fwlink/?LinkId=246102).
57+
58+
-nowarn
59+
Disable all warning messages.
60+
61+
-ignore `warning`
62+
Disable the specified warning. For possible values, see the section about warnings.
63+
64+
-help
65+
Print the command-line help message.
66+
67+
-machine `machine`
68+
Specify the machine type to set in the PE header. Possible values for `machine` are:
69+
**ARM**—Sets the machine type to IMAGE_FILE_MACHINE_ARMNT. This is the default.
70+
**THUMB**—Sets the machine type to IMAGE_FILE_MACHINE_THUMB.
71+
72+
-oldit
73+
Generate ARMv7-style IT blocks. By default, ARMv8-compatible IT blocks are generated.
74+
75+
-via `filename`
76+
Read additional command-line arguments from `filename`.
77+
78+
-16
79+
Assemble source as 16-bit Thumb instructions. This is the default.
80+
81+
-32
82+
Assemble source as 32-bit ARM instructions.
83+
84+
-g
85+
Generate debugging information.
86+
87+
-errorReport: `option`
88+
Specify how internal assembler errors are reported to Microsoft. Possible values for `option` are:
89+
**none**—Do not send reports.
90+
**prompt**—Prompt the user to send reports immediately.
91+
**queue**—Prompt the user to send reports at the next admin logon. This is the default.
92+
**send**—Send reports automatically.
93+
94+
`sourcefile`
95+
The name of the source file.
96+
97+
`objectfile`
98+
The name of the object (output) file.
99+
100+
The following example demonstrates how to use armasm in a typical scenario. First, use armasm to build an assembly language source (.asm) file to an object (.obj) file. Then, use the CL command-line C compiler to compile a source (.c) file, and also specify the linker option to link the ARM object file.
101+
102+
**armasm myasmcode.asm -o myasmcode.obj**
103+
104+
**cl myccode.c /link myasmcode.obj**
105+
106+
## See Also
107+
[ARM Assembler Diagnostic Messages](../../assembler/arm/arm-assembler-diagnostic-messages.md)
108+
[ARM Assembler Directives](../../assembler/arm/arm-assembler-directives.md)
Lines changed: 142 additions & 0 deletions

0 commit comments

Comments
 (0)