You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the -E option is provided, the compiler prints the contents of the preprocessed P4 file, and exits. It would be nice if there existed an option to do the same (and maybe print the preprocessed P4 to some output file in the --dump directory instead of to stdout), but continue with compilation instead of exiting. Is there any reason to not add such an option?
The text was updated successfully, but these errors were encountered:
Actually, Tofino compiler does it already by default, but this is done by the compiler driver (p4c or bf-p4c) (by invoking CPP with the proper parameters) and not by the backend (p4c-barefoot) itself.
When the
-E
option is provided, the compiler prints the contents of the preprocessed P4 file, and exits. It would be nice if there existed an option to do the same (and maybe print the preprocessed P4 to some output file in the--dump
directory instead of tostdout
), but continue with compilation instead of exiting. Is there any reason to not add such an option?The text was updated successfully, but these errors were encountered: