ascherer / mmix Goto Github PK
View Code? Open in Web Editor NEWMMIX 2009 – a RISC computer for the third millennium
Home Page: http://www-cs-faculty.stanford.edu/~knuth/mmix.html
MMIX 2009 – a RISC computer for the third millennium
Home Page: http://www-cs-faculty.stanford.edu/~knuth/mmix.html
Indentation of §51 is completely wrong. Compare §50 right above.
Affected sections are §48, §51, §83, §107.
Fix: Replace forced break @/
with soft break @|
.
Also floatit(.,..,u,p)
.
Add %check
section to specfile.
Line 212 in b32eba1
Line 250 in b32eba1
The triple operator ?:
is formatted inconsistently for Fopen
and Fseek
in section 4 of mmix-sim.w
, i.e., there are several spaces (\
) missing.
Also in section 4 of mmix-sim.w
, purge two commas in displayed lines.
The tricky sequence in section 6 of mmix-sim.w
should purge two extra spaces.
Section 59 of mmix-sim.w
: list of lists and built into.
#define rQ 16
in section 12 of mmmix.w
repeats the same line form mmix-pipe.h
.
CLang 15 started to issue warnings for the mixture of C99 prototype declarations and K&R definitions. GCC 14 likely will follow suite.
Look up C2x (especially C23) for details, or https://news.ycombinator.com/item?id=30396083
At various places in the MMIX sources, Don Knuth asks the interested reader to make significant changes for advanced system features:
Time permitting, I'll try to look up the relevant sections in the codes.
master
differs from svn co svn://mmix.cs.hm.edu/mmixware/trunk
.
mmix-config.w
and mmix-pipe.w
.
In mmixal.w
, replace typedef bool with <stdbool.h>
.
Apply SVN@150 to mmix-pipe.w
.
See https://en.cppreference.com/w/c/language/compound_literal for details.
Great to see all the activity in this repo!
Last year I made an emacs mode, mmix-mode. Might be useful in combination with your compiler.
The copy test case produces a floating point exception 8 on MacOS. Analysis shows that there are several external relationships from mmix-io.w
to both mmix-sim.w
and mmix-pipe.w
(mmgetchars
, mmputchars
, stdin_chr
, ...) and back (mmix_fopen
, mmix_fwrite
, mmix_fputs
, etc.). The former is the main
module for mmix, the latter for mmmix.
ATTOW, it seems impossible to create a working mmix.so shared object containing mmix-pipe.o
(in order to resolve external dependencies from mmix-io.o
et al.) and simultaneously link this to mmix-sim.o
(in order to create mmix).
Miraculously, the shared object approach seems to work on Linux. However, the code base does not support this.
Major features in local
libmmix.so
The word wow
occurs exactly once in the whole source distribution of MMIX.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.