GithubHelp home page GithubHelp logo

mobacon / ldmicro Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 2.0 629 KB

Ladder Logic for Netzer, PIC and AVR

License: GNU General Public License v2.0

C++ 88.73% C 6.58% Perl 0.63% CMake 0.43% Makefile 0.40% Batchfile 0.01% Objective-C 3.22%

ldmicro's Introduction

ldmicro

Ladder Logic for Netzer, PIC and AVR

The original code (Release 2.2) was taken form the Ladder Micro project maintained by Jonathan Westhues: http://cq.cx/ladder.pl

Basically the project is extended with CMake list files to build it with other toolchains like MinGW compiler (also CrossCompile is possible from Linux).

Furthermore some special features for the Netzer (PIC based) platform are added. On this platform a very fast interpreter (entirely written in assembler) was implemented, which runs with int code generated by this ldmico extension. Read more: http://www.mobacon.de/wiki/doku.php/en/netzer/process

Compiling on Windows

  • Using Microsoft Visual C++ Compiler

LDmicro is built using Microsoft Visual C++ compiler. If that is installed correctly, then you should be able to just run

    make.bat

and see everything build.

make.bat uses nmake.exe to compile the project, but Microsoft Visual Studio doesn't add nmake into your path automatically. You can start Visual Studio Command Prompt, change into ./ldmico, and run make.bat(or just enter nmake D=LDLANG_XX, where XX can be set to EN, DE, FR, ES, IT, PT, TR or CN).

Various source and header files are generated automatically. The perl scripts to do this are included with this distribution, but it's necessary to have a perl.exe in your path somewhere.

  • Using GCC Compiler

For compiling on Windows start a command prompt and enter the following commands:

    cd ldmicro
    mkdir build
    cd build
    cmake -G "MSYS Makefiles" -DLANGUAGE=DE ..
    make all

Ensure that CMake, MinGW and MSYS are installed and in your path. LANGUAGE can be set to EN, DE, FR, ES, IT, PT, TR or CN.

Compiling on Linux

For cross compiling on Linux start a command prompt and enter the following commands:

    cd ldmicro
    mkdir build
    cd build
    cmake -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE=../Toolchain-mingw32.cmake -DLANGUAGE=DE ..
    make all

LANGUAGE can be set to EN, DE, FR, ES, IT, PT, TR or CN.

MinGW and CMake can be installed with

sudo apt-get install mingw32 cmake

Using on Linux

For using ldmicro on Linux you have to install wine and winetricks. After installation you also should install ldmicro used fonts:

winetricks Lucida Tahoma

Start ldmicro with simply typing:

./ldmicro.exe

ldmicro's People

Contributors

chihyang avatar mobacon avatar

Stargazers

 avatar Jim Bledsoe avatar Heath Isler avatar

Watchers

 avatar

Forkers

rbelward chihyang

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.