-
Notifications
You must be signed in to change notification settings - Fork 445
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add doc for p4c compiler driver #391
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice!
docs/README.md
Outdated
|
||
**p4c** is a compiler driver. The goal is to provide a cnosistent user interface | ||
across different p4 backends and work flows. The compiler driver is written in | ||
Python. It can be extended for custom backend. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
custom backends.
docs/README.md
Outdated
[source_file] | ||
|
||
positional arguments: | ||
source_file Files to compile |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we actually compile multiple files or just one. AFAIK, one only.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for now, only one.
docs/README.md
Outdated
There is an global variable `config` in p4c compiler driver that stores the build steps | ||
for a particular target. By default, the bmv2 and ebpf backends are supported. Each backend | ||
is identified with a triplet, target-arch-vendor. For example, the default bmv2 backend is | ||
identified as bmv2-*-p4org. The * is a wildcard to represent any architecture. User may choose |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
might want to quote bmv2-*-p4org
No description provided.