Git Product home page Git Product logo

omidpoyan / vbllvm Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wqweto/vbllvm

0.0 0.0 0.0 37.11 MB

LLVM bindings for VB6

License: MIT License

Batchfile 0.02% CMake 0.33% Shell 0.04% Go 0.10% C++ 49.20% OCaml 0.30% Python 0.58% CSS 0.02% Roff 0.01% C 0.55% PHP 0.01% Objective-C 0.01% LLVM 33.56% Assembly 15.24% Logos 0.01% HTML 0.02% Swift 0.01% Perl 0.02% Emacs Lisp 0.01% Vim Script 0.01%

vbllvm's Introduction

VBLLVM

LLVM 6.0.0 and lld 6.0.1 bindings for VB6

Description

This repo contains a stdcall port of LLVM-C API exports to be accessible from VB6 projects. This build uses /MT and /MTd (static) runtimes and Windows XP (v140_xp) platform toolset in Visual Studio 2015 for the produced DLLs to be portable and self-contained.

LLVM and lld preparation

LLVM sources are extracted in lib/llvm-6.0.0.src and stdcall patch is applied in commits cd1946d and e1e1356. LLVM's lld sources are extracted in lib/lld-6.0.1.src with no modifications applied.

LLVM build uses cmake, python3.x and Visual Studio 2015 so make sure you have these pre-installed.

Use lib/llvm-build-release/setup.bat to compile LLVM release build in lib/llvm-install-release.

Use lib/llvm-build-debug/setup.bat to compile LLVM debug build in lib/llvm-install-debug.

Use lib/lld-build-release/setup.bat to compile LLVM's lld release build in lib/lld-install-release.

Use lib/lld-build-debug/setup.bat to compile LLVM's lld debug build in lib/lld-install-debug.

Finally use lib/llvm-install-release/lib/dump-def.bat to collect exports for src/VBLLVM.def

Source usage

Use src/VBLLVM.sln to build bin/release/VBLLVM.dll and bin/debug/VBLLVM.dll from .lib files in lib/llvm-install-release;lib/lld-install-release and lib/llvm-install-debug;lib/lld-install-debug.

Finally use src/typelib/build.bat to build bin/typelib/VBLLVM.tlb from lib/llvm-6.0.0.src/include/llvm-c and src/VBLLVM.def

Samples

  • LLVM's Kaleidoscope toy language VB6 port is in test/kscope

vbllvm's People

Contributors

wqweto 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.