Subject: RE: [sv-ec] System include proposal
From: Kevin Cameron x3251 (Kevin.Cameron@nsc.com)
Date: Mon Mar 10 2003 - 09:55:19 PST
> From lawrence@cadence.com Mon Mar 10 09:35:46 2003
>
> 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.
>
The difference is that tool specific and system specific files will
usually be in different directories. Since we are currently
considering tool-specific files I'd rather use a different syntax so
that we can use '<>' for system files (stdio.h etc.) later.
I made the same proposal as yours to the AMS committee a year ago - then
changed my mind since I didn't want to end up with '<>' for the tool specific
and (say) '[]' for system files which would be inconsistent with C/C++.
Regards,
Kev.
>
> ===================================
> 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:56:13 PST