Skip to content
Snippets Groups Projects
Select Git revision
  • 13d97334c66d9f1ff2469d99a06b1da964a0511a
  • master default
  • labcomm2014_tc31
  • labcomm2014
  • js
  • java_dyn_msg_dec
  • anders.blomdell
  • typeref
  • pragma
  • compiler-refactoring
  • labcomm2013
  • v2014.1
  • v2014.0
  • v2013.0
14 results

run

Blame
  • Forked from Anders Blomdell / LabComm
    375 commits behind the upstream repository.
    run 633 B
    #!/bin/sh
    
    # Auto generate code from .lc file
    java -jar ../../compiler/labComm.jar \
      --c=example.c --h=example.h \
      --java=. \
      --cs=example.cs \
      --python=example.py \
      example.lc
    
    # Compile executables
    (cd ../../lib/c; make liblabcomm.a)
    
    gcc -o example_encoder -I ../../lib/c/ \
    	example_encoder.c \
            example.c \
    	../../lib/c/liblabcomm.a 
    
    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 LabComm2013