• The Anniversary Update (64 bit only) has a developer mode add on that allows Ubuntu code to run in a windows subsystem.

    This means Espruino can be compiled without running in a VM!

    The update has not been rolled out - here are the instructions to update manually...

    http://www.howtogeek.com/248177/whats-ne­w-in-windows-10s-anniversary-update/

    Then turn on developer mode - reboot and add the Linux on windows system:
    http://www.howtogeek.com/249966/how-to-i­nstall-and-use-the-linux-bash-shell-on-w­indows-10/

    On my system - in the cmd prompt, I had this error message:
    Unsupported console settings. In order to use this feature the legacy console must be disabled.

    https://github.com/Microsoft/BashOnWindo­ws/issues/319
    Open cmd.exe
    Right click title bar -> Properties -> Uncheck Use legacy console
    Click OK

    Then on first run of bash.exe, the sub system is installed.

    Then:

    cd /mnt/c
    mkdir ubuntu
    cd ubuntu
    sudo add-apt-repository ppa:terry.guo/gcc-arm-embedded
    sudo apt-get update
    sudo apt-get install gcc-arm-none-eabi git build-essential
    git clone https://github.com/espruino/Espruino.git­
    cd Espruino
    make
    

    Then:

    root@OFFICE-PC:/mnt/c/ubuntu/Espruino# ./espruino
    Interactive mode.
    Size of JsVar is now 32 bytes
    Size of JsVarRef is now 4 bytes
    Added SIGINT hook
    Added SIGHUP hook
    Added SIGTERM hook
    
     _____                 _
    |   __|___ ___ ___ _ _|_|___ ___
    |   __|_ -| . |  _| | | |   | . |
    |_____|___|  _|_| |___|_|_|_|___|
              |_| http://espruino.com
     1v86.113 Copyright 2016 G.Williams
    
    Espruino is Open Source. Our work is supported
    only by sales of official boards and donations:
    http://espruino.com/Donate
    
    >console.log('hi from windows 10!');
    hi from windows 10!
    =undefined
    

    Yay!

    Will try a cross compile soon!

About

Avatar for Wilberforce @Wilberforce started