[問題] Java的編譯器真的是用Java寫的嗎?
看板CSSE (電腦科學及軟體工程)作者as1986 (veni, vidi, vici)時間19年前 (2005/03/17 23:32)推噓7(7推 0噓 15→)留言22則, 4人參與討論串1/1
聽說現在的程式語言(如Java)的compiler都是自己compile自己
(嚴格說是先用別的語言做出該語言的compiler出來,再拿他去compile要compile的
compiler,最後再用被compiled的compiler再去compile一次自己)
好像繞口令XD
可是Java是用bytecode的型式散佈可執行檔啊
所以compiled的compiler也應該是bytecode
這樣就需要一個額外的Java VM了
那為什麼我們不管在哪邊只要打"javac 要編譯的source" 就可以了呢?
好像看不到虛擬機器的存在
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.112.249.234
※ 編輯: as1986 來自: 140.112.249.234 (03/17 23:41)
推
61.62.49.43 03/18, , 1F
61.62.49.43 03/18, 1F
→
61.62.49.43 03/18, , 2F
61.62.49.43 03/18, 2F
推
61.62.49.43 03/18, , 3F
61.62.49.43 03/18, 3F
推
61.62.49.43 03/18, , 4F
61.62.49.43 03/18, 4F
→
61.62.49.43 03/18, , 5F
61.62.49.43 03/18, 5F
→
61.62.49.43 03/18, , 6F
61.62.49.43 03/18, 6F
→
61.62.49.43 03/18, , 7F
61.62.49.43 03/18, 7F
→
61.62.49.43 03/18, , 8F
61.62.49.43 03/18, 8F
→
61.62.49.43 03/18, , 9F
61.62.49.43 03/18, 9F
→
61.62.49.43 03/18, , 10F
61.62.49.43 03/18, 10F
→
61.62.49.43 03/18, , 11F
61.62.49.43 03/18, 11F
→
61.62.49.43 03/18, , 12F
61.62.49.43 03/18, 12F
推
140.113.93.175 03/18, , 13F
140.113.93.175 03/18, 13F
→
140.113.93.175 03/18, , 14F
140.113.93.175 03/18, 14F
→
140.113.93.175 03/18, , 15F
140.113.93.175 03/18, 15F
→
140.113.93.175 03/18, , 16F
140.113.93.175 03/18, 16F
推
140.116.231.175 03/18, , 17F
140.116.231.175 03/18, 17F
→
140.116.231.175 03/18, , 18F
140.116.231.175 03/18, 18F
→
140.116.231.175 03/18, , 19F
140.116.231.175 03/18, 19F
推
61.230.226.67 03/18, , 20F
61.230.226.67 03/18, 20F
→
61.230.226.67 03/18, , 21F
61.230.226.67 03/18, 21F
推
61.222.173.29 03/19, , 22F
61.222.173.29 03/19, 22F
CSSE 近期熱門文章
PTT數位生活區 即時熱門文章