Hope d has great development in Raspberry Pi

Dan Olson via digitalmars-d-ldc digitalmars-d-ldc at puremagic.com
Sat Jan 30 14:52:16 PST 2016


Dan Olson <gorox at comcast.net> writes:

> Quick status of LDC on Pi.  I made a build of ldc master on Raspbian
> Jessie against LLVM 3.5 available with apt-get.  Everything builds ok,
> but there are runtime problems.  Both Fibers and exceptions cause SEGV.
>
> At least now I have a working and up-to-date Pi dev environment.

Ironically, Fibers do work with optimize compile.  Something does wrong
with -O0, some bad codegen in spots.

Simple phobos hello world works, just make sure you give -O to enable
optimizer.

pi at raspberrypi:~ $ cat hellod.d
import std.stdio;

void main()
{
   writeln("hi");
}
pi at raspberrypi:~ $ /mnt/usbhd/ldc-dev/build-llvm35/bin/ldc2 -O hellod.d
pi at raspberrypi:~ $ ./hellod
hi
pi at raspberrypi:~ $ /mnt/usbhd/ldc-dev/build-llvm35/bin/ldc2 -version
LDC - the LLVM D compiler (f94c34):
  based on DMD v2.068.2 and LLVM 3.5.0
  Default target: arm-unknown-linux-gnueabihf
  Host CPU: arm1176jz-s
  http://dlang.org - http://wiki.dlang.org/LDC

  Registered Targets:
    aarch64    - AArch64 (little endian)
    aarch64_be - AArch64 (big endian)
    arm        - ARM
    arm64      - AArch64 (little endian)
    arm64_be   - AArch64 (big endian)
    armeb      - ARM (big endian)
    cpp        - C++ backend
    hexagon    - Hexagon
    mips       - Mips
    mips64     - Mips64 [experimental]
    mips64el   - Mips64el [experimental]
    mipsel     - Mipsel
    msp430     - MSP430 [experimental]
    nvptx      - NVIDIA PTX 32-bit
    nvptx64    - NVIDIA PTX 64-bit
    ppc32      - PowerPC 32
    ppc64      - PowerPC 64
    ppc64le    - PowerPC 64 LE
    r600       - AMD GPUs HD2XXX-HD6XXX
    sparc      - Sparc
    sparcv9    - Sparc V9
    systemz    - SystemZ
    thumb      - Thumb
    thumbeb    - Thumb (big endian)
    x86        - 32-bit X86: Pentium-Pro and above
    x86-64     - 64-bit X86: EM64T and AMD64
    xcore      - XCore


More information about the digitalmars-d-ldc mailing list