Quote:
Originally posted by Speedy5
OK, let me elaborate a bit more. I've found a way to run the BL 7x slower than c++. I tested ifs, switches, function pointers and a few other techniques. Function pointers run fastest for running a single instruction. Then, I tested that 60% of the time is being spent calling up the functions for the instructions. So when I saw that code for cloning functions, I thought, maybe I can cut and paste the bodies of the instruction-handling functions together to form a primitive type of JIT. This would boost speed at the expense of memory (which no one really cares when you have 512mb+...lol). Portable to other compilers? I don't care. I'm using the managed extensions (.NET) anyways. So I have to use C++.NET's compiler. This part, however, and test, is in unmanaged, normal code. How do you clone?
You need to understand programming more before you continue with your project. You still are making absolutely no sense what-so-ever as to why you want to clone a function. You are stubborn at thinking this is what you should do, when you couldn't be more wrong.