« hence why » is always grammatically inappropriate. « Hence » already means « that is the reason why ». While we do not want to constrain others with strict grammar rules on this forum, I would advise checking your grammar (potentially with bots like Grammarly) and making your future texts as concise as possible. Working on your speech is half the work done towards solving your problem.
Are you looking for information on the [foreign function interface](https://nim-lang.org/docs/manual.html#foreign-function-interface)? >From what I understand, you want to : 1\. Quickly compile functions in Nim to C with TCC (the Tiny C Compiler?). Why do you need compilation to be quick? Fast prototyping? 2. As inputs to your function scale, use a more optimizing slower compiler. To get both advantages, you decided to store the (Nim compiled) C code of certain functions and inject this C code in the C output of the rest of the Nim code. Now, you can not use a shared/dynamic C library because you want the ability to modify the functions from Nim itself by string manipulation. That is what I understood. I still do not get your intent with your calc function.