summaryrefslogtreecommitdiff
path: root/miniany/README.html
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2021-09-30 17:03:17 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2021-09-30 17:03:17 +0200
commitb0c6943121f186c79d2152694d209f82904ff1e1 (patch)
tree1fb2d1c528f5e7189e04ab1410f264a8121c01e6 /miniany/README.html
parent9071723d55055307f0e92ae0f9d3194079aa086e (diff)
downloadcompilertests-b0c6943121f186c79d2152694d209f82904ff1e1.tar.gz
compilertests-b0c6943121f186c79d2152694d209f82904ff1e1.tar.bz2
cc: rearanged for a pseudo-main
Diffstat (limited to 'miniany/README.html')
-rw-r--r--miniany/README.html11
1 files changed, 8 insertions, 3 deletions
diff --git a/miniany/README.html b/miniany/README.html
index 40c9c49..9b7fcbf 100644
--- a/miniany/README.html
+++ b/miniany/README.html
@@ -38,7 +38,7 @@
<p>Compiled in either hosted (host libc) or freestanding (our own libc, currently IA-32 Linux kernel only syscalls):</p>
<pre><code>./build.sh cc hostcc hosted d
./build.sh cc hostcc freestanding d
-./cc \&lt; test1.c \&gt; test1.asm
+./cc &lt; test1.c &gt; test1.asm
</code></pre>
<p>Create a plain binary from the assembly code:</p>
<pre><code>fasm test1.asm test1.bin
@@ -54,12 +54,12 @@
</code></pre>
<p>Here again you can choose the host compiler for compiling C4.</p>
<p>Then we have to create the standard input for C4 using:</p>
-<pre><code>echo -n -e &quot;\034&quot; \&gt; EOF
+<pre><code>echo -n -e &quot;\034&quot; &gt; EOF
cat cc.c EOF hello.c | ./c4
cat c4.c EOF cc.c EOF hello.c | ./c4
cat c4.c4 EOF c4.c EOF cc.c EOF hello.c | ./c4
</code></pre>
-<p>EOF contains the traditional FS (file separator) character in the ASCII character set. Every time c4/c4.c is invoked it reads exacly one input file up to the first FS character (or stops at the end of stdin).</p>
+<p>EOF contains the traditional FS (file separator) character in the ASCII character set. Every time c4 is invoked it reads exacly one input file up to the first FS character (or stops at the end of stdin).</p>
<p>We can also use <i>-s</i>, or <i>-d </i>on every level as follows:</p>
<pre><code>cat cc.c EOF hello.c | ./c4 -d
</code></pre>
@@ -89,3 +89,8 @@ cat c4.c4 EOF c4.c EOF cc.c EOF hello.c | ./c4
<li><a href="https://github.com/felipensp/assembly/blob/master/x86/itoa.s">https://github.com/felipensp/assembly/blob/master/x86/itoa.s</a>, for putint (early debugging keyword)</li>
<li><a href="https://baptiste-wicht.com/posts/2011/11/print-strings-integers-intel-assembly.htm">https://baptiste-wicht.com/posts/2011/11/print-strings-integers-intel-assembly.htm</a> (earldy debugging keyword)</li>
</ul>
+<p>Documentation:</p>
+<ul>
+<li><a href="http://cowlark.com/wordgrinder/index.html">http://cowlark.com/wordgrinder/index.html</a>: the fabulous editor which just does what it should do</li>
+<li><a href="https://github.com/mity/md4c">https://github.com/mity/md4c</a>: markdown to HTML in C</li>
+</ul>