fix links in entry HTML files other than index.html
Fixed internal links in entry HTML files other than index.html. Removed links to markdown files that otherwise used to generate HTML files other than index.html. Ran `make gen_other_html` to perform the above.
This commit is contained in:
1 parent
2d3712ed36
commit
99cf726783
38 files changed
+644
-357
No files matched your search
+13
-13
@@ -187,8 +187,8 @@ instruction set is carefully selected to minimize the sizes of both <code><ma
|
||||
</ul></li>
|
||||
</ul>
|
||||
<p>The instructions have variable lengths, but many of them are represented as one
|
||||
printable character. (See <a href="machine.rb">machine.rb</a> and
|
||||
<a href="assemble.rb">assemble.rb</a> in detail.) The mapping between instructions and
|
||||
printable character. (See <a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2014/endoh1/machine.rb">machine.rb</a> and
|
||||
<a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2014/endoh1/assemble.rb">assemble.rb</a> in detail.) The mapping between instructions and
|
||||
characters is also carefully designed to minimize <code><VM code></code>, which makes the
|
||||
resulted program non-human-readable.</p>
|
||||
<h2 id="how-did-i-create-the-main-code">How did I create the main code?</h2>
|
||||
@@ -196,8 +196,8 @@ resulted program non-human-readable.</p>
|
||||
code in Ruby syntax and created a Ruby-to-VM compiler that involves alpha
|
||||
renaming and automatic register allocation only for this purpose.</p>
|
||||
<ul>
|
||||
<li><a href="src.rb">src.rb</a>: the source code of QR code encoder written in Ruby syntax.</li>
|
||||
<li><a href="vm.c">vm.c</a>: the source code of the VM.</li>
|
||||
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2014/endoh1/src.rb">src.rb</a>: the source code of QR code encoder written in Ruby syntax.</li>
|
||||
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2014/endoh1/vm.c">vm.c</a>: the source code of the VM.</li>
|
||||
</ul>
|
||||
<p>The compiler tool chain is the following.</p>
|
||||
<pre><code> src.rb interp.c
|
||||
@@ -232,14 +232,14 @@ renaming and automatic register allocation only for this purpose.</p>
|
||||
V
|
||||
prog.c</code></pre>
|
||||
<ul>
|
||||
<li><a href="parse.rb">parse.rb</a> converts Ruby to AST.</li>
|
||||
<li><a href="serialize.rb">serialize.rb</a> converts AST to intermediate instruction sequence.</li>
|
||||
<li><a href="alpha.rb">alpha.rb</a> applies “alpha-renaming” to the instruction sequence.</li>
|
||||
<li><a href="register.rb">register.rb</a> applies “register allocation”.</li>
|
||||
<li><a href="assemble.rb">assemble.rb</a> converts the sequence to the final stack-machine instructions.</li>
|
||||
<li><a href="interp.c">interp.c</a> is an implementation of the VM.</li>
|
||||
<li><a href="link.rb">link.rb</a> generates <code>main.c</code> by linking the instructions and interpreter source.</li>
|
||||
<li><a href="gen-prog.c">gen-prog.c</a> generates <a href="prog.c">prog.c</a> based on <code>main.c</code>.</li>
|
||||
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2014/endoh1/parse.rb">parse.rb</a> converts Ruby to AST.</li>
|
||||
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2014/endoh1/serialize.rb">serialize.rb</a> converts AST to intermediate instruction sequence.</li>
|
||||
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2014/endoh1/alpha.rb">alpha.rb</a> applies “alpha-renaming” to the instruction sequence.</li>
|
||||
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2014/endoh1/register.rb">register.rb</a> applies “register allocation”.</li>
|
||||
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2014/endoh1/assemble.rb">assemble.rb</a> converts the sequence to the final stack-machine instructions.</li>
|
||||
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2014/endoh1/interp.c">interp.c</a> is an implementation of the VM.</li>
|
||||
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2014/endoh1/link.rb">link.rb</a> generates <code>main.c</code> by linking the instructions and interpreter source.</li>
|
||||
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2014/endoh1/gen-prog.c">gen-prog.c</a> generates <a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2014/endoh1/prog.c">prog.c</a> based on <code>main.c</code>.</li>
|
||||
</ul>
|
||||
<p>You can run the process by <code>rake</code> command. <code>ruby-minisat</code> gem is needed.</p>
|
||||
<pre><code> $ gem install ruby-minisat
|
||||
@@ -254,7 +254,7 @@ renaming and automatic register allocation only for this purpose.</p>
|
||||
found at
|
||||
<code>https://play.google.com/store/apps/details?id=com.google.zxing.client.android</code>
|
||||
but it appears to no longer exist.</p>
|
||||
<p>You can use <a href="tool.rb">tool.rb</a> to convert the output to a png file.</p>
|
||||
<p>You can use <a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2014/endoh1/tool.rb">tool.rb</a> to convert the output to a png file.</p>
|
||||
<pre><code> ./main Hello | ruby tool.rb > hello.png
|
||||
|
||||
$ zbarimg -q hello.png
|
||||
|
||||
+13
-13
@@ -60,8 +60,8 @@ code>` and `<VM code>`.
|
||||
* putchar, exit
|
||||
|
||||
The instructions have variable lengths, but many of them are represented as one
|
||||
printable character. (See [machine.rb](machine.rb) and
|
||||
[assemble.rb](assemble.rb) in detail.) The mapping between instructions and
|
||||
printable character. (See [machine.rb](%%REPO_URL%%/2014/endoh1/machine.rb) and
|
||||
[assemble.rb](%%REPO_URL%%/2014/endoh1/assemble.rb) in detail.) The mapping between instructions and
|
||||
characters is also carefully designed to minimize `<VM code>`, which makes the
|
||||
resulted program non-human-readable.
|
||||
|
||||
@@ -72,8 +72,8 @@ It is too tedious to write the machine language directly. So I wrote the source
|
||||
code in Ruby syntax and created a Ruby-to-VM compiler that involves alpha
|
||||
renaming and automatic register allocation only for this purpose.
|
||||
|
||||
* [src.rb](src.rb): the source code of QR code encoder written in Ruby syntax.
|
||||
* [vm.c](vm.c): the source code of the VM.
|
||||
* [src.rb](%%REPO_URL%%/2014/endoh1/src.rb): the source code of QR code encoder written in Ruby syntax.
|
||||
* [vm.c](%%REPO_URL%%/2014/endoh1/vm.c): the source code of the VM.
|
||||
|
||||
The compiler tool chain is the following.
|
||||
|
||||
@@ -111,14 +111,14 @@ The compiler tool chain is the following.
|
||||
prog.c
|
||||
```
|
||||
|
||||
* [parse.rb](parse.rb) converts Ruby to AST.
|
||||
* [serialize.rb](serialize.rb) converts AST to intermediate instruction sequence.
|
||||
* [alpha.rb](alpha.rb) applies "alpha-renaming" to the instruction sequence.
|
||||
* [register.rb](register.rb) applies "register allocation".
|
||||
* [assemble.rb](assemble.rb) converts the sequence to the final stack-machine instructions.
|
||||
* [interp.c](interp.c) is an implementation of the VM.
|
||||
* [link.rb](link.rb) generates `main.c` by linking the instructions and interpreter source.
|
||||
* [gen-prog.c](gen-prog.c) generates [prog.c](prog.c) based on `main.c`.
|
||||
* [parse.rb](%%REPO_URL%%/2014/endoh1/parse.rb) converts Ruby to AST.
|
||||
* [serialize.rb](%%REPO_URL%%/2014/endoh1/serialize.rb) converts AST to intermediate instruction sequence.
|
||||
* [alpha.rb](%%REPO_URL%%/2014/endoh1/alpha.rb) applies "alpha-renaming" to the instruction sequence.
|
||||
* [register.rb](%%REPO_URL%%/2014/endoh1/register.rb) applies "register allocation".
|
||||
* [assemble.rb](%%REPO_URL%%/2014/endoh1/assemble.rb) converts the sequence to the final stack-machine instructions.
|
||||
* [interp.c](%%REPO_URL%%/2014/endoh1/interp.c) is an implementation of the VM.
|
||||
* [link.rb](%%REPO_URL%%/2014/endoh1/link.rb) generates `main.c` by linking the instructions and interpreter source.
|
||||
* [gen-prog.c](%%REPO_URL%%/2014/endoh1/gen-prog.c) generates [prog.c](%%REPO_URL%%/2014/endoh1/prog.c) based on `main.c`.
|
||||
|
||||
You can run the process by `rake` command. `ruby-minisat` gem is needed.
|
||||
|
||||
@@ -143,7 +143,7 @@ but it appears to no longer exist.
|
||||
|
||||
[1]: http://zbar.sourceforge.net/
|
||||
|
||||
You can use [tool.rb](tool.rb) to convert the output to a png file.
|
||||
You can use [tool.rb](%%REPO_URL%%/2014/endoh1/tool.rb) to convert the output to a png file.
|
||||
|
||||
``` <!---sh-->
|
||||
./main Hello | ruby tool.rb > hello.png
|
||||
|
||||
Reference in new issue
Block a user