When a static variable is defined in a function, clang(1) emits the
following DWARF:
<1><90>: Abbrev Number: 9 (DW_TAG_subprogram)
DW_AT_name: (indirect string, offset: 0x213b): pageflttrap
[...]
<2>: Abbrev Number: 10 (DW_TAG_variable)
DW_AT_name: (indirect
On 9 August 2013 11:04, Martin Pieuchot mpieuc...@nolizard.org wrote:
This is the last episode from the first season of the serie, move
your variables to the stack. Like in the previous episodes, this
one will let us execute the various icmp functions in parallel
without risk of trashing a
This is the last episode from the first season of the serie, move
your variables to the stack. Like in the previous episodes, this
one will let us execute the various icmp functions in parallel
without risk of trashing a value.
It also reduces the difference with the icmp6 code adding a redirect
Hi,
is it normal that in some functions like
tc_ticktock(void)
{
static int count;
if (++count tc_tick)
return;
count = 0;
tc_windup();
}
the static variables
Hi Maxime,
On Jul 8, 2013, at 10:40 AM, Maxime Villard rusty...@gmx.fr wrote:
the static variables are not initialized?
Static variables are always zeroed when not specified otherwise.
Regards,
Franco
Le 08/07/2013 11:00, Franco Fichtner a écrit :
Hi Maxime,
On Jul 8, 2013, at 10:40 AM, Maxime Villard rusty...@gmx.fr wrote:
the static variables are not initialized?
Static variables are always zeroed when not specified otherwise.
Regards,
Franco
Ah, yes. I didn't know.
On Mon, Jul 8, 2013 at 2:06 AM, Maxime Villard rusty...@gmx.fr wrote:
Ah, yes. I didn't know.
For what it's worth, this is specified in C99 §6.7.8 (Initializaton)
paragraph 10:
If an object that has static storage duration is not initialized
explicitly, then:
— if it has pointer type, it is