tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] help with this modification


From: Thomas Preudhomme
Subject: Re: [Tinycc-devel] help with this modification
Date: Wed, 12 Mar 2014 13:01:56 +0800
User-agent: Roundcube Webmail/0.7.2

Le 2014-03-11 22:39, Carlos Montiers a écrit :
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)");

Depending on the version of tcc you use line 3324 could be a quite different place. You could either give a commit sha1 to be more precise or give a unified diff that would give us the context of where you are trying this change.

By the way, I'd go for n > (1 << (256 * 1024)) or a 0x notation that would be more comprehensible than this base 10 integer value.

Best regards,

Thomas



reply via email to

[Prev in Thread] Current Thread [Next in Thread]