LDC relocation flags

2020-12-18 Thread Severin Teona via Digitalmars-d-learn
Hi guys! Do you know how can I compile D code using LDC with the following gcc flags? * -msingle-pic-base * -mpic-register=r9 * -mno-pic-data-is-text-relative. As far as I know, there are no equivalents in D for these. Is is ok to use the -Xcc flag? Thank you!

Adjustments in .tbss section

2020-12-16 Thread Severin Teona via Digitalmars-d-learn
Hi again guys! I have been trying to develop a small-sized DRuntime for microcontrollers during SAoC2020. My last update is here[1]. At the moment, I have managed to build a DRuntime that can be linked with a simple application (not using classes or anything), for TockOS[2], and using the D

Druntime undefined references

2020-11-02 Thread Severin Teona via Digitalmars-d-learn
Hi guys! I build the druntime for an ARM Cortex-M based microcontroller and I trying to create an application and link it with the druntime. I am also using TockOS[1], which does not implement POSIX thread calls and other OS-dependent implementations. As I was looking through the errors I

Druntime without pthreads?

2020-10-20 Thread Severin Teona via Digitalmars-d-learn
Hi guys. I have a curiosity, regarding [1] - I had encountered some "undefined reference" errors when trying to link the druntime (compiled for an embedded architecture) without some implementation of the POSIX thread calls (and other stuff too). My curiosity is what would change if I

Undefined references in Druntime for microcontrollers

2020-10-19 Thread Severin Teona via Digitalmars-d-learn
Hi guys, I have been trying to port the current druntime for microcontrollers (that very little RAM and flash memory). I have been using the 'ldc-build-runtime' tool and finally I managed to compile something that looks alright. The problem is that I compiled the druntime with the flag

Link Time Optimization Bitcode File Format

2020-10-06 Thread Severin Teona via Digitalmars-d-learn
Hi all, I am trying to build the druntime with the 'ldc-build-runtime' tool for microcontrollers (using the arm-none-eabi-gcc compiler) and therefore the size of the druntime should be as little as possible. One solution I had was to use Link Time Optimization (LTO) to reduce the size. The

Building LDC runtime for a microcontroller

2020-09-07 Thread Severin Teona via Digitalmars-d-learn
Hello, I have been trying to build the LDC runtime for a Nucleo-f429zi board with a Cortex-M4 CPU, by following [1]. The target is not dependent on any operating system (as the target board uses a STM32 microcontroller), so the gcc toolchain I have used is arm-none-eabi-gcc(9.3.1). The error

Cross-compile for ARM

2020-04-08 Thread Severin Teona via Digitalmars-d-learn
Hello, I am working with a NUCLEO_f429zi board, architecure ARMv7e-m and cortex-m4 CPU. I want to cross-compile D code for it from Ubuntu 18.04 LTS Server. My current GCC version is 9. How can I do that? What is the best cross-compiler for that?

Using LDC2 on ARM

2020-03-02 Thread Severin Teona via Digitalmars-d-learn
Hello, I am working on a project that uses a Raspberry Pi (armv7l) and the latest LDC version I found for this architecture is 1.13.0. Can you help me install the latest version(1.20.0)? Also, I'm having problems using the DPP package with the 1.13.0 LDC version, most likely because the