Re: Andrzej's Proposal


Subject: Re: Andrzej's Proposal
From: Kevin Cameron (Kevin.Cameron@nsc.com)
Date: Tue Dec 10 2002 - 10:21:02 PST


My main issues with it are:

A)
    There is no reason to force use of pass-by-reference, pass-by-value is
    often useful (you get a writable copy on the stack), and pass-by-value
    can be used to coerce an internal representation to a C representation
    (which may be faster than using abstract access for small data).

    The external function declaration should match the external function
    exactly i.e. pointers are declared as pointers, otherwise users will be
    forced to write wrapper routines for standard library calls etc. that
    they don't have the source for.

    Note: there is no reason that you can't use the C reference and pointer
    declaration syntax in SV - as long as there is no equivalent of the C '*'
    or '->' dereference operators pointers remain effectively opaque.

B)
    All the abstract data handling should be through VPI calls since that
    has to be supported anyway.

Regards,
Kev.

--
National Semiconductor, Tel: (408) 721 3251
2900 Semiconductor Drive, Mail Stop D3-500, Santa Clara, CA 95052-8090



This archive was generated by hypermail 2b28 : Tue Dec 10 2002 - 10:34:10 PST