I'm writing a C99 compiler that works with 64-bit values.
For starters, this will compile 32 bit and 64 bit code. On 64 bit operating systems, I know I can use the r[]x
registers. But for the 32 bit code, how do I do it.
I've tried loading the value into 2 registers each (4 total), but that doesn't work on big arithmetic. Googling how GCC/LLVM works brings up garbage, and I don't want to scrounge their source code.
I'm hoping you guys here can help me do this.