GDTinyCC - gdextension C compiler

Wouldn’t it be a cool option to have a real compiler in a godot node?

GDTinyCC at github

integrates tinycc into Godot with gdextension c++.
compile and execute C code directly (both very fast!).
edit your c-files with the editor of your choice
and choose the name of the .c-file in the GDTinyCC-node in inspector.

GDTinyCC is a new node for godot that inherits from Node.
WIP - programmed with godot 4.5, tinycc-mob

  • _ready, _process, _physics_process, _input and _unhandled_input

  • _enter_tree, exit_tree, *notification

  • signals work

  • time to get out the old bible of C from Kernighan/Ritchie :wink:

three options:

  • compile and run c-source-file just in time (filename *.c in inspector in “Source File”)

  • save the compiled program in an objectfile (filename *.o in inspector in “Output Object File”)

  • load and run the saved program from an objectfile (filename *.o in inspector in “Input Object File”)
    the input object-file must be in the bin-directory!

5 Likes