RE: DirectC: C layer


Subject: RE: DirectC: C layer
From: Warmke, Doug (doug_warmke@mentorg.com)
Date: Sun Dec 15 2002 - 08:56:25 PST


 

From: Andrzej Litwiniuk
> >
> >Example:
> > extern "foo_8" void foo_15_8(logic [15:8]); // ok
> > extern "foo_8" void foo_7_0(logic [7:0]); // ok
> >
> > extern "foo" void f1(int,int,int); // undetected conflict!!!
> > extern "foo" void f2(real,string); // undetected conflict!!!

Francoise wrote:

> we could have the SV compiler checks all the externs and warn/error
> about these conflicts

Sure. But this requires adding a new restriction that the same C name
must not be aliased to two different external functions.
[in the above example C name "foo" is used as an alias for 'f1' and
'f2'.]

I don't mind such restriction. Should we add it to LRM?

DOUG: I would prefer not to make this restriction.
However, we should add this point to the LRM as a matter
of clarity. So either way this will end up in the LRM.

Regards,
Doug



This archive was generated by hypermail 2b28 : Sun Dec 15 2002 - 08:56:59 PST