From e6cc4006f5fc27767f730123cfd524a158ace138 Mon Sep 17 00:00:00 2001 From: pixel <35269695+pixelcmtd@users.noreply.github.com> Date: Thu, 2 Sep 2021 14:15:33 +0200 Subject: [PATCH] adscript: add page (#6432) --- pages/common/adscript.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 pages/common/adscript.md diff --git a/pages/common/adscript.md b/pages/common/adscript.md new file mode 100644 index 000000000..f45f5aa5b --- /dev/null +++ b/pages/common/adscript.md @@ -0,0 +1,20 @@ +# adscript + +> Compiler for Adscript files. +> More information: . + +- Compile a file to an object file: + +`adscript --output {{path/to/file.o}} {{path/to/input_file.adscript}}` + +- Compile and link a file to a standalone executable: + +`adscript --executable --output {{path/to/file}} {{path/to/input_file.adscript}}` + +- Compile a file to LLVM IR instead of native machine code: + +`adscript --llvm-ir --output {{path/to/file.ll}} {{path/to/input_file.adscript}}` + +- Cross-compile a file to an object file for a foreign CPU architecture or operating system: + +`adscript --target-triple {{i386-linux-elf}} --output {{path/to/file.o}} {{path/to/input_file.adscript}}`