[P4-dev] preprocessor support in HLIR?
pschuprikov at gmail.com
Wed Nov 2 12:36:39 EDT 2016
The PP directives are lost on a very early stage
when the input is fed to *gcc*.
If those directives are actually used in p4 code, I can suggest to query
the p4 object that depends on those directives, e.g., whether some
conditionally compiled action is present or, if you have something
: SOME_MACRO*, what is the width of the field.
ср, 2 нояб. 2016 г. в 15:59, <hemant at mnkcg.com>:
> If one adds a C “#define VAR_FOO 1” in P4 code, does HLIR generate an IR
> for it? One needs the defines in the back-end compiler.
> P4-dev mailing list
> P4-dev at lists.p4.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the P4-dev