an arm based compiler (in python for now) for custom language with .no extension
winget install nasm -i
make sure you add the installed folder to your path
I use the following extension however looking for better ones
- 13xforever.language-x86-64-assembly
Compiler's use Abstract Syntax Trees to respresent the source code. The AST is then used to generate the machine code.
Compiler's also use something called Lexical Analysis to convert the source code into tokens. These tokens are then used to generate the AST. Tokens shouldn't be confused with AST nodes. Tokens are the smallest unit of the language. For example, in the following code:
int main() {
return 0;
}
The tokens would be:
int, main, (, ), {, return, 0, ;, }
or something similar.
using build_win.bat to compile the asm file into an exe file
build_win.bat test_win
test_win.exe
echo %ERRORLEVEL%
- get familiar with NASM
- simple return 0 program in windows using elf64 and gcc
- get familiar with arm compiler
- get familiar with arm assembly
- what language to use? (python for now, move to C then Rust)
- .no language return 0
- .no language hello world
- develop syntax further