Note that using gcc is much easier (and more reliable) than using as and ld.
// file simple.c
int main()
{ return 0; }
Use the command gcc -c -S simple.c to compile the program. This will
generate an assembly language file called simple.s. You can use this
file to start writing your own program. Just put your instructions in the file
following the prelude section.