Skip to content
Snippets Groups Projects
Commit 58956828 authored by Sven Robertz's avatar Sven Robertz
Browse files

started simple example

parent 423369b1
No related branches found
No related tags found
No related merge requests found
java -jar ../../labComm.jar --java=java simple.lc
sample struct {
int a;
int b;
} TwoInts;
sample struct {
int x;
string s;
} IntString;
File moved
File moved
File moved
File moved
File moved
File moved
#!/bin/sh
# Auto generate code from .lc file
java -jar ../labComm.jar \
java -jar ../../labComm.jar \
--c=example.c --h=example.h \
--java=. \
--cs=example.cs \
......@@ -9,14 +9,14 @@ java -jar ../labComm.jar \
example.lc
# Compile executables
gcc -o example_encoder -I ../lib/c/ \
gcc -o example_encoder -I ../../lib/c/ \
example_encoder.c \
example.c \
../lib/c/labcomm.c \
../lib/c//labcomm_fd_reader_writer.c
javac -cp ../lib/java:. *.java
../../lib/c/labcomm.c \
../../lib/c//labcomm_fd_reader_writer.c
javac -cp ../../lib/java:. *.java
# Run through all executables (c->java->Python)
./example_encoder one two
java -cp ../lib/java:. example_decoder_encoder example.encoded example.javaencoded
PYTHONPATH=../lib/python ./example_decoder.py example.javaencoded
java -cp ../../lib/java:. example_decoder_encoder example.encoded example.javaencoded
PYTHONPATH=../../lib/python ./example_decoder.py example.javaencoded
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment