2021-01-21 13:40:28 +01:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml"><head>
|
2024-09-06 12:39:30 +02:00
|
|
|
<title>doc/book/building/windows</title>
|
2021-01-21 13:40:28 +01:00
|
|
|
<style type="text/css">
|
|
|
|
|
|
|
|
* { color: #000; background: #fff; max-width: 700px; }
|
|
|
|
tt, pre { background: #dedede; color: #111; font-family: monospace;
|
|
|
|
white-space: pre; display: block; width: 100%; }
|
|
|
|
.indentedcode { margin-left: 2em; margin-right: 2em; }
|
|
|
|
.codeblock {
|
|
|
|
background: #dedede; color: #111; font-family: monospace;
|
|
|
|
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
|
|
|
|
padding: 7px;
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.indentedlist { margin-left: 2em; color: #000; }
|
|
|
|
|
|
|
|
span { white-space: pre; }
|
|
|
|
.text { color: #000; white-space: pre; background: #dedede; }
|
|
|
|
.colon { color: #000; background: #dedede; }
|
|
|
|
.note { color: #000; background: #dedede; }
|
|
|
|
.str { color: #000; text-decoration: underline; background: #dedede; }
|
|
|
|
.num { color: #000; background: #dedede; font-weight: bold; font-style: italic; }
|
|
|
|
.fnum { color: #000; font-weight: bold; background: #dedede; }
|
|
|
|
.ptr { color: #000; font-weight: bold; background: #dedede; }
|
|
|
|
.fetch { color: #000; font-style: italic; background: #dedede; }
|
|
|
|
.store { color: #000; font-style: italic; background: #dedede; }
|
|
|
|
.char { color: #000; background: #dedede; }
|
|
|
|
.inst { color: #000; background: #dedede; }
|
|
|
|
.defer { color: #000; background: #dedede; }
|
|
|
|
.imm { color: #000; font-weight: bold; background: #dedede; }
|
|
|
|
.prim { color: #000; font-weight: bolder; background: #dedede; }
|
|
|
|
|
|
|
|
.tt { white-space: pre; font-family: monospace; background: #dedede; }
|
|
|
|
|
|
|
|
.h1, .h2, .h3, .h4 { white-space: normal; }
|
|
|
|
.h1 { font-size: 125%; }
|
|
|
|
.h2 { font-size: 120%; }
|
|
|
|
.h3 { font-size: 115%; }
|
|
|
|
.h4 { font-size: 110%; }
|
|
|
|
.hr { display: block; height: 2px; background: #000000; }
|
|
|
|
</style>
|
|
|
|
</head><body>
|
2024-09-06 12:39:30 +02:00
|
|
|
<p><span class="h1">Building Retro on Windows</span>
|
|
|
|
<br/><br/>
|
2021-05-17 19:04:42 +02:00
|
|
|
It is possible to build Retro on Windows, though a few of the
|
2021-01-21 13:40:28 +01:00
|
|
|
extensions are not supported:
|
|
|
|
<br/><br/>
|
|
|
|
• no <span class="tt">unix:</span> words<br/>
|
|
|
|
• no <span class="tt">gopher:</span> words<br/>
|
|
|
|
<br/><br/>
|
|
|
|
This is currently more difficult than on a Unix host. If you have
|
|
|
|
Windows 10 and WSL, it may be better to build under that (using
|
|
|
|
the Unix instructions).
|
|
|
|
<br/><br/>
|
2024-09-06 12:39:30 +02:00
|
|
|
<span class="h2">Setup Build Environment</span>
|
2021-01-21 13:40:28 +01:00
|
|
|
<br/><br/>
|
2021-05-17 19:04:42 +02:00
|
|
|
Retro on Windows is built with TCC.
|
2021-01-21 13:40:28 +01:00
|
|
|
<br/><br/>
|
|
|
|
Go to http://download.savannah.gnu.org/releases/tinycc/
|
|
|
|
<br/><br/>
|
|
|
|
Download the <strong>winapi-full</strong> and <strong>tcc-xxxx-bin</strong> packages for your
|
|
|
|
system. Decompress them, copy the headers from the winapi
|
|
|
|
package into the tcc directory.
|
|
|
|
<br/><br/>
|
2024-09-06 12:39:30 +02:00
|
|
|
<span class="h2">Prepare Source</span>
|
2021-01-21 13:40:28 +01:00
|
|
|
<br/><br/>
|
2021-05-17 19:04:42 +02:00
|
|
|
Copy the <span class="tt">vm/nga-c/retro.c</span> and the <span class="tt">vm/nga-c/image.c</span> to
|
|
|
|
the directory you setup tcc into.
|
2021-01-21 13:40:28 +01:00
|
|
|
<br/><br/>
|
|
|
|
<span class="h2">Build</span>
|
|
|
|
<br/><br/>
|
|
|
|
Building will require use of the command line. Assuming that
|
2021-05-17 19:04:42 +02:00
|
|
|
tcc.exe is in the current directory along with the Retro sources:
|
2021-01-21 13:40:28 +01:00
|
|
|
<br/><br/>
|
2021-05-17 19:04:42 +02:00
|
|
|
<tt class='indentedcode'>tcc retro.c -o retro.exe</tt>
|
2021-01-21 13:40:28 +01:00
|
|
|
</p>
|
|
|
|
</body></html>
|