GNU Mix MDK Installation and use

Source: Internet
Author: User

1. Profile Mix is a fictional computer designed by Donald E.knuth for his book "The Art of Computer Programming" (Computer Programming arts, TAOCP). The programming language designed for this calculation is called the Mix assembly language (Mixal). Since this computer does not exist, the algorithm in the book cannot be executed directly. The GNU MDK (GNU Mix develoment Kit) implements a MIX and Mixal simulator with the ability to write, execute, and debug mixal programs to facilitate TAOCP learning. 2. The download and installation requires a *nux environment with a glib flex GTK libglade readline libguile kit installed. wget Ftp://ftp.gnu.org/pub/gnu/mdk/v1.2.8/mdk-1.2.8.tar.gztar zxvf mdk-1.2.8.tar.gz CD Mdk-1.2.8./configure & & Make && make Installmake install 3. Write the Hello World new Hello.mixal file and enter the following:
* * hello.mixal:sys ' Hello World ' in mixal** label ins operand commentterm EQU the MIX console       Device number ORIG start addressstart out MSG (term) output data at address msg HLT       MSG Alf "Mixal" Alf "HELL" Alf "O WOR" Alf "LD" END START End of the program
Compile:
# Mixasm Hello.mixal 4. Run the compiled mix program in a variety of ways. 1) command line mode (MIXVM):

[Email protected] mix]# MIXVM hello.mix
Program loaded. Start address:1000
Mix> Run
Running ...
Mixal HELLO World
... done
Elapsed time:11/total Program time:11 (Total uptime:11)

Mix> quit

2) GUI mode (GMIXVM)

GNU Mix MDK Installation and use

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.