Re: [sv-cc] DPI context - setting/preserving&resetting a scope


Subject: Re: [sv-cc] DPI context - setting/preserving&resetting a scope
From: Andrzej Litwiniuk (Andrzej.Litwiniuk@synopsys.com)
Date: Fri Mar 14 2003 - 14:44:10 PST


> johnS:
> Most likely it will be safer however, if the current context
> is set to NULL by the infrastructure whenever a non-context
> function is called.

John,

this is exactly what I want to avoid!
I don't want =any= overhead on simple calls of non-context functions.
The implementation that I had in mind would instrument only the calls
of context functions.

My take on this is that an overhead is acceptable if it buys you something
important and useful. I don't think that the rule "NULL if called directly from non-context" is worth the price.

It shouldn't happen that we carelessly and without due diligence specify
a functionality of a function, and then all simulators will have to bear
an overhead in order to be compliant with a standard.
I may be wrong whether a specific rule is needed or not, or whether the price
overweights the benefits, but it's my job to figure out the consequences from
compiler's perspective. As you see, I'm a little biased :-)

Regards,
Andrzej



This archive was generated by hypermail 2b28 : Fri Mar 14 2003 - 14:45:00 PST