What's good setup for learning assembly on linux?
As far as i know, on windows it's visual studio, in there you have registers, debugging and other stuff. How about linux?
I tried setting up with this: https://medium.com/@muhammadmeeran2003/how-to-set-up-assembly-language-on-visual-studio-code-2021-587a7b01c9a1 and this: https://github.com/newtonsart/vscode-assembly
That github repo is pretty good, but still no console output and can't see x64 registers while debugging.
Any other good alternatives?
What I use on Linux:
NASM uses Intel assembly syntax. If you want to learn and use AT&T syntax you can use GNU Assembler (
as) provided by thebintutilspackage instead.How I use it:
Create a project
Write a Makefile
Note the indents below are supposed to be TAB characters, not spaces.
Makefile
Write a program
hello_world.asm
Compile and run
Adding a debug target to the makefile
Want to fire up your debugger immediately and break on the main entrypoint? No problem.
Makefile
Now you can clean the project, rebuild, and start a debugging session with one command...