Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
LabComm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sven Gestegård Robertz
LabComm
Commits
a9bcc9a3
Commit
a9bcc9a3
authored
13 years ago
by
Sven Robertz
Browse files
Options
Downloads
Patches
Plain Diff
epsilon
parent
fb8d0935
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
examples/simple/README
+7
-4
7 additions, 4 deletions
examples/simple/README
with
7 additions
and
4 deletions
examples/simple/README
+
7
−
4
View file @
a9bcc9a3
NB! Before trying to build and run examples, make sure you have built the LabComm compiler
by running "ant jar" in the main directory (../../ seen from here) and compiled the labcomm
descriptions needed. The compile.sh script does this.
This is a very simple example with one labcomm file (simple.lc) defining two samples.
This is a very simple example with one labcomm file (simple.lc) defining two samples.
Example source code: Encoders and decoders written in Java and C.
Example source code: Encoders and decoders written in Java and C.
Encoder.java
Encoder.java
...
@@ -12,8 +8,15 @@ And simple scripts
...
@@ -12,8 +8,15 @@ And simple scripts
compile.sh - first runs the LabComm compiler and then compiles Encoder and Decoder
compile.sh - first runs the LabComm compiler and then compiles Encoder and Decoder
run.sh - runs, as expected Encoder and then Decoder
run.sh - runs, as expected Encoder and then Decoder
the datagram directory contains the same example, but over datagram (UDP and raw etherne )protocols.
When running compile.sh, Java and C files for the two samples defined in simple.lc will
When running compile.sh, Java and C files for the two samples defined in simple.lc will
be generated in the gen directory.
be generated in the gen directory.
run.sh will then run first the encoder, writing to encoded_data, and then the decoders written
run.sh will then run first the encoder, writing to encoded_data, and then the decoders written
in Java and C, respectively, reading from the previously written encoded_data.
in Java and C, respectively, reading from the previously written encoded_data.
NB! Before trying to build and run examples, make sure you have built the LabComm compiler
by running "ant jar" in the main directory (../../ seen from here) and compiled the labcomm
descriptions needed. The compile.sh script does this.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment