From 01ee14133906e4afa55cdc52eeb1c9e78bbeced5 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Sat, 9 Oct 2021 15:55:32 -0400 Subject: Add NASM compiler --- docs/markdown/snippets/asm.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 docs/markdown/snippets/asm.md (limited to 'docs/markdown/snippets') 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) +``` -- cgit v1.1