Centos7分部骤编译单文件执行程序
Centos7分部骤编译64位执行程序#!/bin/bash# 脚本执行格式:$ ./build-centos7-x64.sh <source file> <execute file>#src=$1dst=$2echo 'source file:'$srcecho 'execute file:'$dst#预编译gcc -E $src -o $dst.i# 汇编gcc -S $dst.i -o $dst.s# 编译as $dst.s -o $