Giter Club home page Giter Club logo

mandel.cdt's Introduction

CDT (Contract Development Toolkit)

Version : 3.0.0

CDT is a toolchain for WebAssembly (WASM) and a set of tools to facilitate smart contract development for the Mandel platform. In addition to being a general purpose WebAssembly toolchain, Mandel specific optimizations are available to support building smart contracts. This new toolchain is built around Clang 9, which means that CDT has the most currently available optimizations and analyses from LLVM, but as the WASM target is still considered experimental, some optimizations are incomplete or not available.

Binary Releases

CDT currently supports Linux x86_64 Debian packages.

Debian Package Install

wget https://github.com/eosnetworkfoundation/mandel.cdt/releases/download/v3.0.0-rc1/cdt_3.0.0-rc1_amd64.deb
sudo apt install ./cdt_3.0.0-rc1_amd64.deb

Debian Package Uninstall

sudo apt remove cdt

Building

Ubuntu 20.04 dependencies

apt-get update && apt-get install   \
        build-essential             \
        clang                       \
        cmake                       \
        git                         \
        libxml2-dev                 \
        opam ocaml-interp           \
        python3                     \
        python3-pip                 \
        time
python3 -m pip install pygments

If issues persist with ccache

export CCACHE_DISABLE=1

Building Integration Tests

Integration tests require access to a mandel build. Instructions below provide additional steps for using a mandel built from source. For development purposes it is generally advised to use mandel built from source.

For building integration tests with mandel built from source

Set an environment variable to tell CDT where to find the Mandel build directory:

export eosio_DIR=/path/to/mandel/build/lib/cmake/eosio

Guided Installation or Building from Scratch

git clone --recursive https://github.com/eosnetworkfoundation/mandel.cdt
cd mandel.cdt
mkdir build
cd build
cmake ..
make -j8

From here onward you can build your contracts code by simply exporting the build directory to your path, so you don't have to install globally (makes things cleaner). Or you can install globally by running this command:

sudo make install

Running Tests

Unit Tests

cd build

ctest

Running Integration Tests (if built)

cd build/tests/integration

ctest

Uninstall after manual installation

sudo rm -fr /usr/local/cdt
sudo rm -fr /usr/local/lib/cmake/cdt
sudo rm /usr/local/bin/eosio-*
sudo rm /usr/local/bin/cdt-*

Installed Tools


  • cdt-cpp
  • cdt-cc
  • cdt-ld
  • cdt-init
  • cdt-abidiff
  • cdt-wasm2wast
  • cdt-wast2wasm
  • cdt-ranlib
  • cdt-ar
  • cdt-objdump
  • cdt-readelf

License

MIT

mandel.cdt's People

Contributors

larryk85 avatar jeffreyssmith2nd avatar arhag avatar scottarnette avatar iamveritas avatar bogniq avatar kj4ezj avatar dskvr avatar swatanabe-b1 avatar conr2d avatar zreyn avatar williamblevins avatar vzqzhang avatar venu-block1 avatar oschwaldp-oci avatar b1bart avatar allenhan2 avatar victorj8 avatar softprofe avatar kimjh2005 avatar cocho-gore avatar norsegaud avatar praphael avatar lparisc avatar nksanthosh avatar jgiszczak avatar tbfleming avatar nickjjzhao avatar ndcgundlach avatar linhuang-blockone avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.