程式執行 - Linux

Table of Contents

※ [本文轉錄自 LinuxDev 看板]

作者: littleboypis (littleboypis) 站內: LinuxDev
標題: [問題] 程式執行
時間: Wed Nov 4 13:35:05 2009

想請教一下 一隻程式是怎麼在OS(Linux/Windows)執行的?

為何gcc hello.c後 就可以下
./a.out
在OS上執行

如果在沒有OS上的 又是怎麼一個情況?

謝謝

--

All Comments

Isabella avatarIsabella2009-11-08
想問一下 要用什麼key word去google 可獲得相關資訊
Zenobia avatarZenobia2009-11-09
gcc hello.c後會產生一個"a.out"的檔案到當前的目錄
Ursula avatarUrsula2009-11-11
然後,在shell裡當前目錄會表示為"."
Iris avatarIris2009-11-12
所以"./a.out"的意思是,執行"."中的"a.out"檔案
所以這跟OS什麼的無關
Lily avatarLily2009-11-16
你可以參考一下這個網站 http://www.utfg.net/index.php
Hardy avatarHardy2009-11-17
然後打上"鳥哥 a.out"
Mary avatarMary2009-11-21
就能找到像是 http://0rz.tw/juxCf 的中文說明