[P4Testgen] Reduce the use of static objects in P4Testgen #4286
Labels
enhancement
This topic discusses an improvement to existing compiler code.
p4tools
Topics related to the P4Tools back end
CompilerTarget, Target, and Context are all singleton, static mystery objects floating around the interpreter. They are initialized in a specific way that makes it hard to make changes or extend the tool, in particular it is difficult to make P4Testgen a library because these static objects always need be initialized properly.
Find a way to reduce the usage of these objects.
The text was updated successfully, but these errors were encountered: