|
I'm writing my own compiler, too.
One way to do it is to compile it into assembly language. Alternatively, like what I am doing, create machine code directly. For x86, there is a massive document available somewhere at intel.com that describes instruction formats and all the instructions, etc. Ask me if you want a link and I'll try to find it for you.
|