I made a Code Generator, The code generator supports floating point numbers.
I used SSE2 instructions for generating assembly code for instructions that use doubles.
It translates from the Intermediate Representation into assembly for x86 architectures.
I also kept System V Calling conventions. In this way I can call functions from the math.h library and they work.
The code generator supports type conversions between floating point numbers and integers.
If you want to look at the code:
No comments:
Post a Comment