|
|
|
|
|
by Joker_vD
856 days ago
|
|
> more machinery is necessary to track those dependencies. Well, is it much more machinery? IIRC doing void f(size_t n) {
int x[n];
n += 1;
...
does not resize x, so there is no dataflow dependency or rather, x depends on a hidden const variable so no additional dataflow analysis necessary. |
|
Also, the compiler has to make sure it keeps around implicit locals to store the variable layouts, so that code like
functions as specified. This kind of pattern is one of the bigger things setting the feature apart from just "syntax sugar for alloca()".