An open API service indexing awesome lists of open source software.

https://github.com/lexi-lambda/solc

A utility for generating libsol-compatible bytecode from sol files.
https://github.com/lexi-lambda/solc

Last synced: 3 months ago
JSON representation

A utility for generating libsol-compatible bytecode from sol files.

Awesome Lists containing this project

README

        

About
=====
The solc utility is a command-line utility for converting
sol source files to libsol-compatible C source.

Building solc
=============

Requirements
------------
To build solc, you'll need the following installed on your system:

* [PCRE](http://pcre.org/) - Perl Compatible Regular Expressions

Building
--------
The process to build solc is the same as that of libsol; see
the libsol README for the build process information.

Using libsol
============
Once built and installed, solc can be called from the command-line.
To use it, simply type `solc `. It will generate a
.c file with the same name as the original .sol input.

To compile and run the resulting file, you'll need to have already
built libsol. You can then compile the file with a standard C
compiler, preferably either GCC or Clang. Here is a sample command,
using Clang:

clang -lsol -o my-program my-program.c

You can then run the program by typing:

./my-program