From 4db5148d44bf5694095bce0c9da90a823ac20993 Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Tue, 30 Apr 2024 10:08:25 -0700 Subject: [PATCH] Fix broken links in 2014/endoh1 + make clobber --- 2014/endoh1/Makefile | 3 ++- 2014/endoh1/spoilers.html | 4 ++-- 2014/endoh1/spoilers.md | 4 ++-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/2014/endoh1/Makefile b/2014/endoh1/Makefile index 6c4e48c1c..fdbf6f34a 100644 --- a/2014/endoh1/Makefile +++ b/2014/endoh1/Makefile @@ -224,7 +224,8 @@ clean: clobber: clean ${RM} -f ${TARGET} ${ALT_TARGET} ${RM} -rf *.dSYM - ${RM} -f main.c treacle.c + ${RM} -f main.c treacle.c + ${RM} -f alpha.txt ast.txt raw.txt reg.txt seq.txt @-if [ -e sandwich ]; then \ ${RM} -f sandwich; \ echo 'ate sandwich'; \ diff --git a/2014/endoh1/spoilers.html b/2014/endoh1/spoilers.html index 386160758..6f60754b3 100644 --- a/2014/endoh1/spoilers.html +++ b/2014/endoh1/spoilers.html @@ -480,9 +480,9 @@ renaming and automatic register allocation only for this purpose.

  • alpha.rb applies “alpha-renaming” to the instruction sequence.
  • register.rb applies “register allocation”.
  • assemble.rb converts the sequence to the final stack-machine instructions.
  • -
  • interp.c is an implementation of the VM.
  • +
  • vm.c is an implementation of the VM.
  • link.rb generates main.c by linking the instructions and interpreter source.
  • -
  • gen-prog.c generates prog.c based on main.c.
  • +
  • gen-prog.rb generates prog.c based on main.c.
  • You can run the process by rake command. ruby-minisat gem is needed.

        $ gem install ruby-minisat
    diff --git a/2014/endoh1/spoilers.md b/2014/endoh1/spoilers.md
    index 4fdc5d91f..0cdb97f3c 100644
    --- a/2014/endoh1/spoilers.md
    +++ b/2014/endoh1/spoilers.md
    @@ -116,9 +116,9 @@ The compiler tool chain is the following.
     * [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.
    +* [vm.c](%%REPO_URL%%/2014/endoh1/vm.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`.
    +* `gen-prog.rb` 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.