Mellow-Programming-Language / Mellow

The Mellow Programming Language
MIT License
7 stars 2 forks source link

(Reimplement/Implement remaining) append/slice code with C->ASM strategy #55

Closed CollinReeser closed 9 years ago

CollinReeser commented 9 years ago

That is, instead of hand-rolling the array append and slice code in assembly, write typesize-specific implementations in C, compile to optimized assembly, inspect and correct the result, and inline that generated assembly into the code generator, committing the C files for reference and future corrections/additions.

Ideally, the generated code makes no use of the stack, and especially no use of callee-saved registers.

CollinReeser commented 9 years ago

This issue exists both as a way to finish the missing append/slice code, but also to provide a robust reimplementation of the existing code, which has had bugs in the past and likely still does.

CollinReeser commented 9 years ago

Closing with release of 0.9.0 (ee20732cb3ca8a8e1313be02bc8a44d905a2d509).