偶而你會懶得存檔,因此有方法可以直接編出來:
# for C
gcc -xc -
# for C++
g++ -xc++ -
# for example
echo 'main(){puts("Hello world!");}' | gcc -xc - && ./a.out
沒有留言:
張貼留言