RE: [sv-ec] System include proposal


Subject: RE: [sv-ec] System include proposal
From: Jay Lawrence (lawrence@cadence.com)
Date: Mon Mar 10 2003 - 09:35:29 PST


I think of these things as equivalent to a 'C' system include. In the
future we could put lots of stuff here as a part of the standard such as
the definitions of I/O (stdio.h), data structures (types.h) etc. I
really don't see a difference.

===================================
Jay Lawrence
Architect - Functional Verification
Cadence Design Systems, Inc.
(978) 262-6294
lawrence@cadence.com
===================================

> -----Original Message-----
> From: Kevin Cameron [mailto:Kevin.Cameron@nsc.com]
> Sent: Monday, March 10, 2003 12:28 PM
> To: sv-ec
> Subject: Re: [sv-ec] System include proposal
>
>
>
>
> Jay Lawrence wrote:
>
> > Attached is the proposal on a system-wide include mechanism.
>
> Can we use (say) "[]" instead of "<>" - "<>" are used in C to indicate
> OS specific includes more often than tool-specific, and I think it may
> make sense to do the same with SV, i.e. use "<>" for platform specific
> includes and "[]" tool-specific.
>
> Regards,
> Kev.
>
> >
> >
> > Jay
> >
> > ===================================
> > Proposal:
> >
> > The syntax of the include compiler directive will be as follows:
> >
> > include_compiler_directive ::=
> > `include "filename"
> > | `include <filename>
> >
> > When the filename is an absolute path, only that filename
> is included.
> >
> > When the filename is a relative path, then various
> directories are searched as specified below.
> >
> > When the double quote ("filename") version is used, the
> behavior of `include begins exactly like the behavior today
> which searches the current directory and then any directories
> specified via a vendor specific command line argument (like
> XL's +incdir+ option). The only modification is that the
> system-wide installation is searched by default after all
> user specified directories.
> >
> >
> > When the angle bracket ("<>") notation is used, then only
> the system-wide installation is searched.
>
> --
> 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 : Mon Mar 10 2003 - 09:39:36 PST