p4c icon indicating copy to clipboard operation
p4c copied to clipboard

Make it possible to compile P4C without P4-14 support

Open vlstill opened this issue 1 year ago • 2 comments

This would be useful for downstream projects that have no interest in P4-14. It would speed up compilation as well as any static analysis that uses compilation process as a source of what should be checked. This is somewhat related to #4674 as apparently the V1 converters take about 6 % of compilation time.

vlstill avatar Jul 03 '24 08:07 vlstill

Yes, very useful! Unfortunately, I do not have the cycles to push for this yet. This should be a CMake option with a define flag.

I wonder whether we should drop this code at some point, or keep maintaining it. There are the extreme approaches to maintenance: Microsoft-style (backwards compatible forever) or the Google-style (constant breaking changes).

fruffy avatar Jul 03 '24 15:07 fruffy

I prefer Linux style (backwards compatible forever, but may require some extra shim work) as opposed to Microsoft (backwards compatible as long as it is conventient). Google style leads to dead projects quickly.

ChrisDodd avatar Jul 03 '24 20:07 ChrisDodd