Quick Start
GDCC is an open-source GDScript compiler and toolchain that compiles GDScript scripts into plain C code and native dynamic library modules executed through the GDExtension interface.
Install
Section titled “Install”Download GDCC from the GDCC GitHub Releases page.
You will see two package types:
gdcc-<version>-<os>-<arch>.zipincludes only thegdcclauncher and core files.gdcc-<version>-<os>-<arch>-full.zipincludes those files plus all toolchains required to run GDCC, so it works out of the box.
For later updates, you can download the package that only contains the gdcc launcher and core files and use it to overwrite the existing installation.
Compile a Script
Section titled “Compile a Script”The basic command shape is:
gdcc [options] <files...>Compile one script:
gdcc -o build/demo src/player.gdCompile multiple scripts into one module:
gdcc -o build/demo src/player.gd src/enemy.gdCompile a Godot Project Script
Section titled “Compile a Godot Project Script”When a script belongs to a Godot project, pass the project file so GDCC can emit .gdextension metadata:
gdcc --project game/project.godot -o build/demo game/src/player.gdCommon Options
Section titled “Common Options”-o/--output <output>sets the output target path. If omitted, GDCC derives a name from the input files.--gde <version>selects the Godot GDExtension API version. Currently only4.5.1is supported, with compatibility for newer versions.--opt/--optimize <level>selectsdebugorrelease.--target <platform>selects a target such aslinux-x86-64,windows-x86-64, orlinux-aarch64.--prefix <prefix>and--class-map Source=Canonicalcontrol generated top-level canonical class names.