作者mangoleo (植物的優)
看板MacDev
標題[問題] 在 Mac 上安裝 SIC/XE 模擬器遇到問題
時間Thu Oct 4 00:20:59 2007
因修習系統程式,老師給了這個軟體,但尚未說明如何安裝/使用。
SIC Assembler:
ftp://rohan.sdsu.edu/faculty/beck/SystemSoftware.tar
我試著先裝起來看看,讀我檔中提到需要 Pascal 編譯器,到
http://www.microbizz.nl/gpc.html
抓了 GNU Pascal 3.4.5u2 installer for Mach-O Intel
(Intel native and PowerPC cross compiler)
我電腦的是 iMac CD
安裝好編譯器之後,便要編譯程式碼
$ gpc SICSIM.PAS
/usr/bin/ld: SICSIM.PAS bad magic number (not a Mach-O file)
collect2: ld returned 1 exit status
換了一個檔案測試
$ gpc SICASM.PAS
/usr/bin/ld: SICASM.PAS bad magic number (not a Mach-O file)
collect2: ld returned 1 exit status
也是一樣的情況,不曉得是哪個步驟有誤?
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 203.73.47.55
1F:推 kenji30401:把 .PAS 改成 .pas 10/07 21:14
2F:推 mangoleo:感謝!真的改成小寫就能編譯了 :) 10/07 23:32