Package: i8c
Infinity is a platform-independent system for executables and shared
libraries to expose functionality to debug, monitoring, and analysis
tooling.In Infinity, executable and shared library files containInfinity
notesin addition to their regular contents.  Each Infinity note
contains a function encoded in a platform-independent instruction
set that note-consuming tools can load and execute.This package provides I8C, a compiler for creating object files
containing Infinity notes.  This package also provides I8X, an
execution environment that can be used to create unit tests for
compiled notes.InstallationThe easiest way to install I8C and I8X is to use pip:pip install -U --user i8cor:sudo pip install -U i8cEither of those commands will install both I8C and I8X.  If you don’t
have pip please refer toinstalling pip.  Hint: try one of these
commands:sudo apt-get install python-pip
sudo yum install python-pipThe latest development versions of I8C and I8X are available fromGitLab.  To build and install from source use setup.py:python setup.py install --useror:sudo python setup.py installI8C and I8X require Python 2.6 or newer.LicenseI8C is licensed under the terms of the GNU General Public License,
eitherversion 3of the License, or (at your option) any later
version.I8X is licensed under the terms of the GNU Lesser General Public
License, eitherversion 2.1of the License, or (at your option)
any later version.I8X loads user-supplied note testcases into itself, making a combined
work.  The LGPL allows note testcases to be licensed however their
authors choose.For the avoidance of doubt, I8C does not make a combined work with
its input.  I8C’s input may also be licensed however its authors
choose.Note CompilerThe note compiler’s standard mode of operation is to translate
source code into object files which can be linked into executables
or shared libraries in the usual manner.  This example will
generate the filefactorial.o:cd examples/factorial
i8c -c factorial.i8I8C uses GCC both to preprocess its input (unless invoked with-fpreprocessed) and to assemble its output (unless invoked with-Eor-S).  If GCC is used, all options not explicitly listed
byi8c --helpwill be passed to GCC unmodified.  In general I8C
operates like GCC, so if you’re used to using GCC then I8C should
make sense.Execution EnvironmentI8X is an execution environment for testing Infinity notes.  When
invoked asi8x --quick(ori8x -q) I8X executes a single note
function, taking arguments from the command line and displaying the
result on the console:cd examples/factorial
i8x -i factorial.o -q "example::factorial(i)i" 5When invoked without-qor--quickI8X expects one or more note
testcases to be specified on the command line.  Note testcases are
written in Python using an extension of theunittestunit testing
framework.  Testcases execute note functions with specific inputs and
check the operation and result of the call proceeds as expected.  This
example tests thefactorial.oobject file created in the first
example above:cd examples/factorial
i8x -i factorial.o test-factorial.pyDocumentationDocumentation for Infinity is currently being put together on theInfinity wiki.  Good starting points areI8LanguageandNoteFormat.Right now there’s no documentation for I8C and I8X aside from this
file and what you see ini8c --helpandi8x --help.  This is
being worked on!ContributingThe Infinity project homepage ishttps://infinitynotes.org/.  Future
work is planned and coordinated onhttps://infinitynotes.org/roadmap.
For help or to report bugs please emailinfinity@sourceware.org.