retroforth/doc/book/building/windows
crc 20a28c2d95 book: formatting updates, small corrections
FossilOrigin-Name: 6d8b4cf262c5f560e7b9fe89906cefc74734ebf9f10521e6ff24f8440b162c59
2020-01-14 19:38:03 +00:00

34 lines
916 B
Text

# Building RETRO on Windows
It is possible to build RETRO on Windows, though a few of the
extensions are not supported:
- no `unix:` words
- no `gopher:` words
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).
## Setup Build Environment
RETRO on Windows is built with TCC.
Go to http://download.savannah.gnu.org/releases/tinycc/
Download the *winapi-full* and *tcc-xxxx-bin* packages for your
system. Decompress them, copy the headers from the winapi
package into the tcc directory.
## Prepare Source
Copy the `source/interfaces/retro-windows.c` and the
`source/interfaces/retro-windows.c` to the directory you setup
tcc into.
## Build
Building will require use of the command line. Assuming that
tcc.exe is in the current directory along with the RETRO sources:
tcc retro-windows.c -o retro.exe