Skip to content
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

Merged
merged 3 commits into from
Mar 24, 2017
Merged

add doc for p4c compiler driver #391

merged 3 commits into from
Mar 24, 2017

Conversation

hanw
Copy link
Contributor

@hanw hanw commented Mar 24, 2017

No description provided.

@hanw hanw requested a review from cc10512 March 24, 2017 18:22
Copy link
Contributor

@cc10512 cc10512 left a 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.
Copy link
Contributor

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
Copy link
Contributor

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.

Copy link
Contributor Author

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
Copy link
Contributor

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

@hanw hanw merged commit 8c8bddb into p4lang:master Mar 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants