You can do what you want with "self modifying code." Check out:
http://en.wikipedia.org/wiki/Self-modifying_code
Don't carried away with this stuff, since it can be hard to debug and it does trigger a reload of the instruction cache, which slows things down, but if infrequently done, it can produce the speed up you are seeking.
Personally, I think all this is just a can of worms that is better avoided. Simple is better. Besides, there are more productive ways to improve a chess program.
a program that write chess programs(can you do it?)
Moderators: hgm, Rebel, chrisw
-
- Posts: 317
- Joined: Mon Jun 26, 2006 9:44 am
Re: a program that write chess programs(can you do it?)
PS:
If you would _really_ do it, this would be the way to go:
http://www.diku.dk/forskning/topps/activities/cmix/
It is a working "Partial Evaluator" for C. It does exactly what you want and even more.
Oliver
If you would _really_ do it, this would be the way to go:
http://www.diku.dk/forskning/topps/activities/cmix/
It is a working "Partial Evaluator" for C. It does exactly what you want and even more.
Oliver