thambisree at gmail.com
Mon Oct 17 21:39:16 EDT 2016
I was using b4c-bm and it produced C++ code in PD, which we could not use
so we wrote a script to support c, then I come across the p4c-behavioral
and found it was generating C code, But still I am not sure how to use C++
code or C code. generated by b4c-bm or p4c-behavioral
Any Example how to use the PD generated by really helps to proceed further.
On Mon, Oct 17, 2016 at 4:54 PM, Antonin Bas <antonin at barefootnetworks.com>
> p4c-behavioral is the initial version of the behavioral model (also called
> bmv1). It would compile the P4 code to C code. The C code could then be
> compiled with gcc to obtain a switch executable.
> p4c-behavioral is being deprecated in favor of bmv2 (
> https://github.com/p4lang/behavioral-model) and we don't provide support
> for it any more (except for existing bug fixes). Our reasons for
> deprecating p4c-behavioral are listed here: https://github.com/p4lang/
> Fell free to try out p4c-behavioral if you want. The p4factory repository
> still supports it and you can follow these instructions:
> On Mon, Oct 17, 2016 at 4:42 PM, Thambi Sreedharan <thambisree at gmail.com>
>> What is the difference between p4c-behavioral p4c-bm,
>> using p4c-behavioral i compiled my P4 code and it generated a set of
>> files --gen-dir option.
>> I like to know more about generated files use, is this similar to p4c-bm
>> --pd and How compile this generated files which file is the top file
>> P4-discuss mailing list
>> P4-discuss at lists.p4.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the P4-discuss