Self-hosting compiler: Difference between revisions

Added FreeBASIC
(Added FreeBASIC)
 
(One intermediate revision by one other user not shown)
Line 24:
 
The older Mono C# compiler, currently backed by the .NET Foundation, can be found at [https://github.com/mono/mono]. There is also a (much newer) Mono VB compiler.
 
=={{header|FreeBASIC}}==
Essentially, FreeBASIC consists of two parts:
 
1. The FreeBASIC compiler, written in FreeBASIC (self-hosting). Compiling this requires a working FreeBASIC installation.
2. The FreeBASIC runtime libraries, written in C. Compiling this requires a C compiler such as gcc, the GNU C compiler (Native gcc on Linux, MinGW on Windows, DJGPP for DOS).
 
FreeBASIC is a self-hosting compiler, being roughly 120,000 lines of code (compiler core only, not including libraries).
 
Source code can be downloaded from [https://freebasic.net/wiki/DevBuild https://freebasic.net/wiki/DevBuild].
 
=={{header|Go}}==
Line 126 ⟶ 136:
 
The VM (which includes the bytecode compiler) and the command line interpreter (which enables Wren scripts to be run independently) are written in C. Most of the core library is also written in C though parts of it are written in Wren itself. Frankly, in the interests of speed and because Wren is primarily intended as an embedded scripting language, self-hosting is never going to happen.
 
Note, however, that Wren can compile Wren source code ''at runtime'' using the Meta.compile method.
 
=={{header|ZED}}==
2,122

edits