A Node.js-based transpiler that adds GCC-like macro and helper functions to Solidity assembly code, enabling cleaner pointer arithmetic, struct attribute access, byte offsets, and data packing/unpacking directly in inline assembly blocks. Current stable version is 1.1.2. Development appears low-activity, with no recent releases after v1.1.0. It differentiates by providing C-style macros (#define TRANSPILE) that expand to optimized Solidity assembly, reducing manual storage slot calculations. Requires gcc and Node.js. Not widely adopted, and likely only useful for advanced Ethereum developers working with low-level storage optimizations.
npm install transpiler-solidityNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows installation, writing a source file with #define TRANSPILE and a pointer_attr macro, and running the transpiler to produce expanded Solidity assembly.
Add #define TRANSPILE at the top of your .sol file before any contract definitions.
Use pragma solidity 0.5.7; or adjust the output to match your compiler version.
Consider whether this tool is still maintained; alternatives may involve hand-optimizing assembly or using other transpilers.
Install gcc (e.g., apt-get install gcc on Ubuntu, brew install gcc on macOS).
Run `npm install -g transpiler-solidity` or `npm install transpiler-solidity` in your project.
Install gcc (e.g., `apt install gcc` on Debian/Ubuntu, `xcode-select --install` on macOS).
Run `transpiler-solidity input.sol > output.sol` and compile output.sol instead.