Open quintenbons opened 6 days ago
I'll try to be a bit more verbose here of what I have in mind:
the class could be called "AssemblyGenerator" and should be able to manage text section differently than data section for example:
generator.addStringLiteral(ast::StringLiteral{ "hello world" })
would result in having a msg: db "hello world" in the data sectionThese two last points would greatly help with #19
Start writing a class to generate code. A datastructure that would be able to create different sections, manage literals, manage stack, maybe available registers... This structure would need to be able to "link" the different assembly strings together after building the blocks to make inlining easier for example