Compiler identification manifest constants?

E

Evan Lavelle

Guest
I'm like to get a list of these to handle conditional compilations for
different compilers. The only compiler that I know of that actually
has one is NC, but I couldn't find even that one on Google.

Does anyone know of any compilers that support these constants, and
their values?

Thanks -

Evan

[A manifest constant is a predefined constant; if you're writing C
code, for instance, you might say

#if defined __GNUC__
.... // code which is gnu-specific
#endif
]
 
Since you mentioned NC, I assume you're talking about simulators.

The ones I know off-hand are that VCS has an implicit `define VCS and
Modelsim/Questa has `define MODEL_TECH.

You have to look pretty hard to find these in the manuals, but they're
usually there somewhere.

-cb
 
On Tue, 18 Sep 2007 17:49:13 -0000, Chris Briggs <chris@engim.com>
wrote:

Since you mentioned NC, I assume you're talking about simulators.

The ones I know off-hand are that VCS has an implicit `define VCS and
Modelsim/Questa has `define MODEL_TECH.
I found a few more, for the free ones: __ICARUS__, __CVER__, and
__VERIWELL__ work for those 3 compilers.

Steven Sharp says here

http://groups.google.co.uk/group/comp.lang.verilog/browse_frm/thread/7304a25598117f7e/ccc442ebd605d395?hl=en&lnk=st&q=sharp+NC+macro+group%3Acomp.lang.verilog&rnum=6#ccc442ebd605d395

that NC-Verilog also has an identifier, but omitted to say what it
actually was. I suspect that ISE doesn't have one; I spent some time
trying various strings from the binary, but without success.

Thanks -

Evan
 
Evan Lavelle wrote:
Steven Sharp says here

that NC-Verilog also has an identifier, but omitted to say what it
actually was.
I believe it is INCA.

Which makes s little more sense if you know that it is an acronym for
Interleaved Native-Compiled Architecture, which was the name for the
mixed-language NC-Verilog/NC-VHDL/NC-Sim technology.
 

Welcome to EDABoard.com

Sponsor

Back
Top