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
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Anders Blomdell
LabComm
Commits
8cfc830a
Commit
8cfc830a
authored
12 years ago
by
Sven Robertz
Browse files
Options
Downloads
Patches
Plain Diff
documentation epsilon
parent
e1eec198
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
doc/tech_report.tex
+25
-2
25 additions, 2 deletions
doc/tech_report.tex
with
25 additions
and
2 deletions
doc/tech_report.tex
+
25
−
2
View file @
8cfc830a
...
@@ -148,10 +148,15 @@ only arrays of arrays.
...
@@ -148,10 +148,15 @@ only arrays of arrays.
The LabComm system consists of a compiler for generating code from the data
The LabComm system consists of a compiler for generating code from the data
descriptions, and libraries providing LabComm communication facilities in,
descriptions, and libraries providing LabComm communication facilities in,
currently, C, Java, Python, and C#.
currently, C, Java, Python, and C
\#
.
\subsection
{
The LabComm compiler
}
\subsection
{
The LabComm compiler
}
The LabComm compiler generates code for the declared samples, including marshalling and
demarshalling code, in the supported target languages.
The compiler itself is implemented in Java using the JastAdd~
\cite
{
jastadd
}
compiler compiler.
\subsection
{
The LabComm library
}
\subsection
{
The LabComm library
}
The LabComm libraries contain functionality for the end-to-end transmission
The LabComm libraries contain functionality for the end-to-end transmission
...
@@ -276,6 +281,24 @@ Running \verb+./example_encoder one two+, will yield the following result in exa
...
@@ -276,6 +281,24 @@ Running \verb+./example_encoder one two+, will yield the following result in exa
00000068
00000068
\end{verbatim}
\end{verbatim}
i.e.,
\begin{verbatim}
<sample
_
decl> <user
_
id: 0x40> <string: <len: 11> <"log
_
message">
<struct
_
decl:
<number
_
of
_
fields: 2>
<string: <len: 8> <"sequence"> <type: <integer
_
type>>
<string: <len: 4> <"line">> <type: <array
_
decl
<number
_
indices: 1> <variable
_
index>
<type: <struct
_
decl:
<number
_
of
_
fields:2>
<string: <len: 4> <"last">> <type: <boolean
_
type>>
<string: <len: 4> <"data">> <type: <string
_
type>>
>>
>
>
<sample
_
decl> <user
_
id: 0x41>
...
\end{verbatim}
\section
{
Ideas/Discussion
}
:
\section
{
Ideas/Discussion
}
:
...
@@ -327,7 +350,7 @@ VariableSize : Exp;
...
@@ -327,7 +350,7 @@ VariableSize : Exp;
<packet> := ( <type
_
decl> | <sample
_
decl> | <sample
_
data> )*
<packet> := ( <type
_
decl> | <sample
_
decl> | <sample
_
data> )*
<type
_
decl> := 0x01 ''(packed)'' <user
_
id> <string> <type>
<type
_
decl> := 0x01 ''(packed)'' <user
_
id> <string> <type>
<sample
_
decl> := 0x02 ''(packed)''<user
_
id> <string> <type>
<sample
_
decl> := 0x02 ''(packed)''<user
_
id> <string> <type>
<user
_
id> := 0x
6
0..0xffffffff ''(packed)''
<user
_
id> := 0x
4
0..0xffffffff ''(packed)''
<string> := <string
_
length> <char>*
<string> := <string
_
length> <char>*
<string
_
length> := 0x00..0xffffffff ''(packed)''
<string
_
length> := 0x00..0xffffffff ''(packed)''
<char> := any UTF-8 char
<char> := any UTF-8 char
...
...
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