sonic-net / DASH

Disaggregated APIs for SONiC Hosts
Apache License 2.0
80 stars 89 forks source link

[build] Switch BMv2 p4 compiler from p4c to p4c-bm2-ss. #494

Closed r12f closed 8 months ago

r12f commented 8 months ago

p4c-bm2-ss is a dedicated compiler built for building bmv2 code. Unlike p4c-ss and p4c-bm, this compiler is using the latest code, directly built from the p4c backend.

Switching to this compiler will not change the generated content, but it will give us more access on more command line options instead of being limited to the small set of the parameters provided by p4c, e.g. dumping IRs, which may give us more information for generating SAI in a more smarter way.

Similarly, we are already doing it for DPDK - using p4c-dpdk instead of p4c -b dpdk.