Skip to content
nickng edited this page Apr 11, 2012 · 1 revision

Session C runtime

  1. git clone the source code
  2. Install ZeroMQ (2.1 or above) into lib/ or system lib/ directory
  3. Install lex/yacc or compatible tools
  4. run make on toplevel
  5. Two binaries, bin/connmgr and bin/parser will be created, along with a static library lib/libsc.a
    • connmgr is a command-line tool for pre-generating connection configuration for a distributed Session C program. Use $ connmgr /path/to/hostfile /path/to/global/protocol connection.conf to create connection.conf.
    • parser is a command-line interface to the scribble parser, mainly for debugging and syntax-checking. Use $ parser /path/to/scribble/file to invoke the parser and print out a summary if parsing is successful.
    • libsc.a is the Session C runtime library, to run Session C code, make sure your linker knows where to find this file, eg. $ cc -Wall -o main main.c -L/path/to/libsc/dir -lsc -lzmq will compile the Session C source code main.c.

Session C typechecker