dimitriv / Ziria

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

Ziria produces code with too much nesting that fails C compilation #107

Open bradunov opened 9 years ago

bradunov commented 9 years ago

Ziria can produce a C code with an arbitrary number of nested blocks (through aggressive inlining), which may cause a C compiler to fail. Here is an example from VS: ..\test.c(6402): fatal error C1061: compiler limit : blocks nested too deeply It would be good to check the level of nesting at the code generation pass and avoid this problem.

Assigned to @mainland and @dimitriv , as instructed by @dimitriv