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.
- Host: GitHub
- URL: https://github.com/lexi-lambda/solc
- Owner: lexi-lambda
- Created: 2013-02-03T23:09:47.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2014-08-18T23:29:12.000Z (almost 11 years ago)
- Last Synced: 2025-01-30T02:10:01.467Z (5 months ago)
- Language: C
- Homepage:
- Size: 293 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
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