Hello. I want modify the source code of tiny for warns about arrays
declared inside functions, with a size greather than 1MB (default stack
size on windows) or a less value, maybe 256KB, but I have problem for know
is the arrays is declared in global or inside the function. How I can know
it.

I have this line on tccgen.c under line 3324 :

                if ((n > 262144) && !(vtop->type.t & VT_STATIC))
                    tcc_warning("array size greater than 256 KB can full
the default stack reservation size on windows (1 MB)");

but seems that vtop->type.t is 0.
How I can determine if the array is global or local ?

Carlos.
_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to