jeandrek / do-it

Toy compiled language
GNU General Public License v3.0
2 stars 1 forks source link

Every expression stores result in eax #17

Open jeandrek opened 6 years ago

jeandrek commented 6 years ago

Eax stores every intermediate value ever. This is probably very bad. Also, edx and ecx are never used, and all variables are unconditionally stored on the stack.

jeandrek commented 6 years ago

This also means I can't even open-code simple procedures (with more than one operand) like + and * without using the stack.