Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tcort/lmc
a virtual machine implementation of Dr. Madnick's "Little Man Computer" along with an assembler.
https://github.com/tcort/lmc
interpreter lmc virtual-machine
Last synced: 26 days ago
JSON representation
a virtual machine implementation of Dr. Madnick's "Little Man Computer" along with an assembler.
- Host: GitHub
- URL: https://github.com/tcort/lmc
- Owner: tcort
- License: isc
- Created: 2013-10-08T20:42:56.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2017-11-25T16:25:53.000Z (almost 7 years ago)
- Last Synced: 2024-08-03T18:18:10.716Z (3 months ago)
- Topics: interpreter, lmc, virtual-machine
- Language: C
- Size: 42 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: COPYING
Awesome Lists containing this project
- AwesomeInterpreter - lmc
README
# lmc
[![Build Status](https://api.travis-ci.org/tcort/lmc.png?branch=master)](http://travis-ci.org/tcort/lmc)LMC stands for Little Man Computer. It was created in 1965 by Dr. Stuart
Madnick as a way to illustrate the basic features of a programmable computer.This repository contains an implementation of a virtual LMC as well as an
assembler to compile simple programs into byte code that can be executed
by the virtual machine.## Requirements
* C compiler and standard build tools (make, sh, autoconf/automake, ...).
* lex or flex
* yacc or bison## Building
Use the following commands to build, test, and install LMC.
./configure
make
make check
make install## Requirements for Cross Compiling (Target: mingw32)
* Cross toolchain (ex: mingw32 on Debian)
* lex or flex
* yacc or bison
* nsis (for generating an installer)
* wine (for running the test suite)## Cross Compiling (Target: mingw32)
Use the follow commands to cross compile LMC, run the test suite under wine,
and generate an installer exe:./configure --host=i586-mingw32msvc
make
make check
makensis lmc.nsi