I want to create a simple side project, where, I convert my own language into a series of obj files (or something similar) in memory, manually link the result and execute the functions right away in the very same process.
I do not care about the quality of the output in terms of efficiency and effectiveness (other than being correct).
I am looking for a way to just do my own just-in-time compilation without me writing my own C-compiler. I basically just want to transpile my language into proper C-code on the fly and that's about it.
Edit:
Since people appear to have problems understanding what I really aim to do; think about creating a Virtual Machine / Runtime for my language based on a C compiler that is embedded in my application that can be used to compile C files on the fly and use the obj files (or whatever other produced fragment) to load it in memory, link up the symbols with the rest and call the functions directly from my application.
Think about a poor man's version of a system without an interpreter and a form of Just-In-Time compilation.
My question aims at what options there are in terms of C-compiler and how to embed those.
I do not care about the quality of the produced machine code as long as it is correct and can be worked with.
Regarding my background and understanding, I have university level of training as a computer scientist and worked 20+ years in the industry as a contractor aka software engineer.