dimitriv / Ziria

A domain-specific-language and compiler for low-level bitstream processing.
92 stars 18 forks source link

Smarter array initialization is neede #116

Closed bradunov closed 8 years ago

bradunov commented 8 years ago

Similarly as before, the following code gets VS down on its knees:

fun comp test() {
  var cellGrid : arr[50*12*14] complex16;
  emit cellGrid;
}
let comp main = read[int] >>> test() >>> write

because it creates 50 \times 12 \times 14 temporary complex16 structs with {0,0} values.