Linux操作環境下配置MMIX環境

2021-09-08 05:28:02 字數 863 閱讀 2687

mmix用途:高德納寫的《計算機程式設計藝術》,使用 mmixal 來編寫**,解釋演算法。

環境:ubuntu 桌面版18.04。

1,建立mmix資料夾並切入該資料夾中

$ mkdir mmix

$ cd mmix

$ wget
3,解壓

$ tar xf mmix.tar.gz
4,安裝

$ make doc

$ make all

$ make clean

中間可能會報個錯

$ sudo apt install -y texlive-binaries
5,編譯執行

$ cat hello.mms
hello.mms內容顯示如下:

ar**   is    $1

loc #100

main ldou $255,ar**,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

mmix安裝成功

準備 mmix 環境_圖靈社群

mix

linux下配置php環境

我 文章,可惜忘了出處,這裡對不起作者。新版的老版的還是有些不同的。現在把步驟帖一下 安裝步驟 存至 home tmp目錄 命令列表 cd home tmp rpm ivh mysql 3.23.52 1.i386.rpm 安裝mysql server rpm ivh mysql client 3....

Linux下配置cgi環境

在apche下配置cgi的幾點注意事項 apache載入cgi模組 使用 scriptalias url directory 命令在httpd.conf中將url和存放cgi指令碼的目錄進行對映 儲存檔案重啟伺服器 在用cgi指令碼中,開始必須輸出html文件頭且以文件頭後緊跟換行,否則會出現500...

linux下 mysq l環境配置

mysql server community 5.1.62 1.rhel5 mysql devel community 5.1.62 1.rhel5 mysql shared compat 5.1.62 1.rhel5 mysql client community 5.1.62 1.rhel5 安裝...