Re: [sv-bc] Is member of recursive task/function hierarchically referred?

From: Gordon Vreugdenhil <gordonv_at_.....>
Date: Mon Jan 30 2006 - 07:20:07 PST
Bresticker, Shalom wrote:
> 1364-2005, 10.4.1, says, 
> "The keyword automatic declares an automatic function that is reentrant,
> with all the function declarations
> allocated dynamically for each concurrent function call. Automatic
> function items can not be accessed by
> hierarchical references. Automatic functions can be invoked through the
> use of their hierarchical name."
> 
> It does not explicitly say anywhere, I think, that a non-automatic
> function cannot call itself, but I think the compilers all forbid it.

I disagree.  A non-automatic routine may certainly call itself,
but the locals (including the formals) do not have automatic
lifetime which means that any recursive call tromps on the state
of the locals in the routine.  This makes any recursive non-automatic
routine pretty touchy.

I know of at least one system that compiles/runs Surya's
example as given.

GOrd.


> Shalom


-- 
--------------------------------------------------------------------
Gordon Vreugdenhil                                503-685-0808
Model Technology (Mentor Graphics)                gordonv@model.com
Received on Mon Jan 30 07:20:17 2006

This archive was generated by hypermail 2.1.8 : Mon Jan 30 2006 - 07:21:51 PST