moroso / compiler

The compiler for the Moroso project.
4 stars 3 forks source link

Static arrays #17

Closed amwatson closed 10 years ago

amwatson commented 10 years ago

I noticed that in the C output, a static array is not allocated onto the stack; I just get a pointer. Are we currently supporting static arrays and if not, do we intend to?

https://gist.github.com/amwatson/be9320ca4c24b078283f

kemurphy commented 10 years ago

This is a bug, I thought this was the whole point of using only sized arrays as a type....

kemurphy commented 10 years ago

... but it won't matter soon anyway because this cross-compiler will be deprecated in favor of one based on IR once that's done.

mrwright commented 10 years ago

Yeah, ccross doesn't properly support those yet. I'll try to add support this evening.