Seeking Guidance on Compiling P4 Programs in Open P4 Studio

I am a new PhD student working with Open P4 Studio. On the official GitHub, I only found a test example (which I’ve successfully run), but now I need to run my own P4 program and inspect its pipeline stages. After discussing with my senior, he mentioned that I must first “make” the P4 program to analyze the resulting .bfa files.

As a beginner, I’m unsure how to properly compile and build P4 programs. Could you kindly advise:

  1. Where can I find relevant documentation for this process?
  2. If possible, could you share the specific commands/steps to compile .p4 programs?

I would be immensely grateful for any guidance!

Thank you in advance.

This document was recently added to the open-p4studio repository. Please read it, try out the instructions there (after installing the open-p4studio code following instructions in the top level README) to see if they answer any of your questions: open-p4studio/docs/P4-Compilation.md at main · p4lang/open-p4studio · GitHub