Skip to content

Compiling Tilck with TCC & self-hosting? #93

Answered by vvaltchev
vvaltchev asked this question in Q&A
Discussion options

You must be logged in to vote

Unfortuantely, Tilck cannot be built with TinyCC out of the box. In addition to the requirement for the GAS assembler, the project uses some new C11 features like atomics that are not supported by TinyCC, along with a bunch of GCC extensions. With enough effort, it would be possible to make Tilck's C files to build with TinyCC, but a full build certainly will need more than that: Gas, CMake, Bash and several other tools need to work too. Also, Tilck uses linker scripts and I'm not sure TinyCC's embedded linker can support that. It's true that TinyCC was able to build Linux 2.4, but the build probably used several other tools, not just the compiler alone.

I guess that the shortest path for…

Replies: 1 comment 2 replies

Comment options

vvaltchev
Oct 24, 2021
Maintainer Author

You must be logged in to vote
2 replies
@kassane
Comment options

@vvaltchev
Comment options

vvaltchev Jan 8, 2023
Maintainer Author

Answer selected by vvaltchev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants