Friday, May 30, 2025

Code Generation of Floating point numbers

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:

Compiler Code



No comments:

Post a Comment