#Very Important Instructions for this file
A simple hello world x86 program demonstrating syscalls.
###Build Instructions: You need to run the cpp to convert the .S file to .s file. Then instead of manually assembling and linking the file, you can run cc as shown.
###Main vs _start Here note the use of the 'dont include std lib' flag. This is because we do not have a main but a direct _start. If you want to use main instead, replace all instances of _start with main and remove this flag. It should work the same.
/lib/cpp -m32 syscall.S syscall.s
cc -nostdlib -m32 syscall.s
./a.out
The expected output is :
Testing syscalls