github.com/DQNEO/babygo@v0.0.3/assemble_and_link (about)

     1  #!/bin/bash
     2  set -e
     3  as_file=$1
     4  exe_file=$2
     5  tmp_dir=$3
     6  
     7  as -o ${tmp_dir}/a.o ${as_file}
     8  ld -o ${exe_file} ${tmp_dir}/a.o