it would be great to have a tool that enhances C++ compilation time, breaking it down to functions instead of libraries for Linux (VB.Net supports sth similar and a commercial tool for Microsoft Visual Studio C++ (recode), that seems to be it ?)
I have been lately thinking about doing so to enhance debugging (rerun functions after an update) and programmability in terms of time spend.
The basic idea is to create a programming framework that recreates functions, classes etc. as runtime objects parsing C++ code, thus runtime-speed would slow down and development cycles would speed up. Once the development process is sufficient, the real C++ compiler would be called to create machine code.
C++ related questions:
To do so I am running into two technical problems:
1.) How to do casting at runtime ? An idea would be to have a separate
dynamic library that does the casting, is there a better way of doing it?
2.) Would it be possible to create general function pointers on runtime?
What is been looked for is a pointer to a function returning any type having any type of arguments and being able to call that function on runtime having its address and the arguments that should be forwarded into it.
std::function< ... > for instance ?
I am not sure if there is a difference between different OSs if the function address would be known when jumping to the function address with execution, but I am guessing so. A proper programming construct may save some thinking here.
None technical questions:
Are there any restrictions by ISO or other organisations that would prohibit doing so?