1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-03-28 21:16:20 +01:00

adscript: add page (#6432)

This commit is contained in:
pixel 2021-09-02 14:15:33 +02:00 committed by GitHub
parent b4a18d95ad
commit e6cc4006f5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

20
pages/common/adscript.md Normal file
View file

@ -0,0 +1,20 @@
# adscript
> Compiler for Adscript files.
> More information: <https://github.com/Amplus2/Adscript>.
- 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}}`