Subject: Re: [sv-cc] DPI context - setting/preserving&resetting a scope
From: Stickley, John (john_stickley@mentorg.com)
Date: Fri Mar 14 2003 - 14:49:41 PST
Andrzej,
Andrzej Litwiniuk wrote:
>  > 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 :-)
johnS:
You may be biased, but in a good direction. Making it possible
for high performing implementations should be one of the most,
if not *the* most overriding design criteria of this interface !
-- johnS
                                                            __
                        ______                             |  \
______________________/      \__                         /    \
                                 \       H  Dome      ___/     |
John Stickley                 E |       a  __    ___/  /       \____
Principal Engineer            l |       l  | \  /
Verification Solutions Group    |       f  |  \/     ____
Mentor Graphics Corp. - MED   C \         --  /     /
17 E. Cedar Place             a  \     __/   /     /
Ramsey, NJ  07446             p  |    /        ___/
                                  |   /        /
mailto:John_Stickley@mentor.com  \           /
Phone: (201)818-2585              \         /
                                    ---------
This archive was generated by hypermail 2b28 : Fri Mar 14 2003 - 14:51:41 PST