The current version of p4studio installs Tofino P4 compiler as $SDE_INSTALL/bin/p4c.
This is incorrect and breaks a lot of things (starting with the standard cmake files for P4 code compilation). The proper name is $SDE_INSTALL/bin/bf-p4c.
The rationale is that Intel Tofino compiler is not a pure p4c for a given target (Tofino). That executable is actually called $SDE_INSTALL/bin/p4c-barefoot. Instead p4c is a compiler driver, i.e. a Python script that calls the compiler, the assembler and a number of other scripts to perform the compilation. Moreover, the set of parameters it accepts is different.
Using the name p4c creates a lot of confusion and often leads to very frustrating errors, especially in cases where people have both Tofino compiler and the 'regular' p4c installed.
The current version of
p4studioinstalls Tofino P4 compiler as$SDE_INSTALL/bin/p4c.This is incorrect and breaks a lot of things (starting with the standard
cmakefiles for P4 code compilation). The proper name is$SDE_INSTALL/bin/bf-p4c.The rationale is that Intel Tofino compiler is not a pure
p4cfor a given target (Tofino). That executable is actually called$SDE_INSTALL/bin/p4c-barefoot. Insteadp4cis a compiler driver, i.e. a Python script that calls the compiler, the assembler and a number of other scripts to perform the compilation. Moreover, the set of parameters it accepts is different.Using the name
p4ccreates a lot of confusion and often leads to very frustrating errors, especially in cases where people have both Tofino compiler and the 'regular' p4c installed.