準備 MMIX 環境
安裝 MMIX 軟體
Knuth: MMIX News 頁面提到:
Software
People have been accumulating several years of experience with a straightforward MMIX assembler and simulator, and I know that both programs work reasonably well on three platforms. The pipeline meta-simulator is also up and running, but with a user interface that is not for beginners. (This is one of the most difficult programs I've ever written, and surely one of the most interesting, for people who have time to explore low-level details.)
In general these programs are now entirely stable: I won't be changing them any more, because they've proved their value in extensive use. Further developments, including versions that I myself do not maintain, are however ongoing. All the really current news about MMIX is, in fact, now to be found in the MMIX home pages.
因此,使用以下命令下載並安裝 MMIXware:
$ mkdir MMIX; cd MMIX
$ wget https://www-cs-faculty.stanford.edu/~knuth/programs/mmix.tar.gz
$ tar xf mmix.tar.gz
$ make doc
$ make all
$ make clean
$ sudo mv abstime mmix mmixal mmotype mmmix /usr/local/bin
彙編並執行
$ cat hello.mms
argv IS $1
LOC #100
Main LDOU $255,argv,0
TRAP 0,Fputs,StdOut
GETA $255,String
TRAP 0,Fputs,StdOut
TRAP 0,Halt,0
String BYTE ", world",#a,0
$ mmixal hello.mms
$ mmix hello
hello, world
大功告成。
參考資料
相關文章
- (1)環境準備
- Ambari環境準備
- 0. 準備環境
- 一、考前環境準備
- Flutter(一) 環境準備Flutter
- Django測試環境準備Django
- FASTAPI 系列 01-環境準備ASTAPI
- 01_Rust開發環境準備Rust開發環境
- 逆向環境準備(刷機與root)
- Elastic認證叢集環境準備AST
- 【linux】驅動-1-環境準備Linux
- kubernetes入門預先準備環境
- flask之旅: 開發前環境準備Flask
- openstack 部署(Q版)—–環境準備篇
- 越獄環境下使用Cycript(準備)
- 準備Python環境學習OpenCV的使用PythonOpenCV
- DKHadoop安裝的環境準備介紹Hadoop
- Linux伺服器準備java執行環境Linux伺服器Java
- Flutter學習系列之Flutter上手環境準備Flutter
- 複雜網路作業一:環境準備
- Python準備環境,Linux、Anaconda3安裝PythonLinux
- ubuntu下AI伺服器環境的部署準備UbuntuAI伺服器
- [原創] Frida操作手冊-Android環境準備Android
- 11g ADG級聯備庫基礎測試環境準備
- Oracle OCP(34):環境準備(Redhat 7 + Oracle 12c)OracleRedhat
- 冬季實戰營動手實戰-上雲必備環境準備,動手實操快速搭建LAMP環境LAMP
- Oracle 12cR1 RAC叢集安裝(一)--環境準備Oracle
- Oracle 19C OGG基礎運維-01環境準備Oracle運維
- 30個類手寫Spring核心原理之環境準備(1)Spring
- gRPC學習之二:GO的gRPC開發環境準備RPCGo開發環境
- Linux運維第二課—-Linux發展史、環境準備Linux運維
- Angular 4環境準備與Angular cli建立專案詳解Angular
- 智密騰訊雲直播組建--準備騰訊雲環境
- 從0開始建立自己的部落格:準備環境(後端)後端
- 00 在Windows環境中開發Cordova專案的準備工作Windows
- 1.1環境的準備(一)之Python直譯器的安裝Python
- LNMP+HAProxy+Keepalived負載均衡(一)- LNMP基礎環境準備LNMP負載
- ubuntu環境配置備忘Ubuntu