aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown/snippets/asm.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/markdown/snippets/asm.md')
-rw-r--r--docs/markdown/snippets/asm.md18
1 files changed, 18 insertions, 0 deletions
diff --git a/docs/markdown/snippets/asm.md b/docs/markdown/snippets/asm.md
new file mode 100644
index 0000000..be8b0cb
--- /dev/null
+++ b/docs/markdown/snippets/asm.md
@@ -0,0 +1,18 @@
+## New language `nasm`
+
+When the `nasm` language is added to the project, `.asm` files are
+automatically compiled with NASM. This is only supported for x86 and x86_64 CPU
+family.
+
+Support for other compilers compatible with NASM language, such as YASM, could
+be added in the future.
+
+Note that GNU Assembly files usually have `.s` extension and were already built
+using C compiler such as GCC or CLANG.
+
+```meson
+project('test', 'nasm')
+
+exe = executable('hello', 'hello.asm')
+test('hello', exe)
+```