'How to write {ARCHITECTURE} ="7-M" in GNU GCC assembler
What will be the syntax to write {ARCHITECTURE} = "7-M" in GNU syntax using -march and arm7?
I am importing Keil-based assembly code in GCC assembly code.
Solution 1:[1]
You said you are importing into GCC (compiler) but I presume you mean GAS (assembler).
You can find in the GAS manual the the .arch directive.
.arch armv7-m
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Tom V |
