forked from DavidPH/GDCC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
110 lines (66 loc) · 2.91 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
Game Data Compiler Collection (GDCC)
A collection of programs for compiling/processing source code for use by video
games. This includes compiling to bytecode as well as preprocessing definition
data. The programs are meant to be suitable for use in automated build systems.
GDCC ACS Compiler (gdcc-acc)
Compiles Hexen ACS source into IR data.
GDCC Wad Archiver (gdcc-ar-wad)
Packs and unpacks Doom WAD format archives.
GDCC Assembler (gdcc-as)
Compiles GDCC assembly into IR data for a low-level interface to the IR.
GDCC C Compiler (gdcc-cc)
Compiles C source into IR data.
GDCC C Preprocessor (gdcc-cpp)
Applies C preprocessing to input files.
GDCC IR Dump (gdcc-irdump)
IR inspection and disassembler. Primarily intended for debugging compilers.
GDCC Linker (gdcc-ld)
Linker program for converting intermediary representation files to bytecode.
GDCC NTS Compiler (gdcc-ntsc)
Processes plain text files into Doominati NTS format by tokenizing.
GDCC MakeLib (gdcc-makelib)
Compiles entire libraries into IR data.
===============================================================================
Usage Overview
===============================================================================
===========================================================
Headers
===========================================================
By default, system headers are looked for under <system path>/lib, which must
have the contents of the repository lib directory. <system path> under Windows
is the executable directory, otherwise /usr/share/gdcc.
If the lib directory is elsewhere, the --lib-path option must be used to locate
it.
===============================================================================
Compilation
===============================================================================
===========================================================
Dependencies
===========================================================
Currently, the only library dependency is GMP, the GNU Multiple Precision
Arithmetic Library (https://gmplib.org/) and its C++ API.
Additionally, cmake (https://cmake.org/) is required to build.
===========================================================
Linux
===========================================================
From the repository root, compilation can be done with the following commands:
mkdir build
cd build
cmake ..
make
Executables and needed shared objects will be generated under their associated
directories under build/src. (For example, gdcc-cc is under build/src/CC.)
===========================================================
Windows (mingw-w64)
===========================================================
To build and install libgmp from its source, the following can be used:
./configure
make
make check
make install
From the repository root, compilation can be done with the following commands:
mkdir build
cd build
cmake ..
mingw32-make
mingw32-make install