Re: Adjustments in .tbss section

2020-12-16 Thread Timo Sintonen via Digitalmars-d-learn
On Wednesday, 16 December 2020 at 11:51:52 UTC, Severin Teona wrote: 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 applicat

Re: Cross-compile for ARM

2020-04-08 Thread Timo Sintonen via Digitalmars-d-learn
On Wednesday, 8 April 2020 at 15:52:59 UTC, Severin Teona wrote: 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-

Re: Example uses "volatile"; compiler says "undefined identifier volatile"

2019-07-31 Thread Timo Sintonen via Digitalmars-d-learn
On Thursday, 1 August 2019 at 03:04:27 UTC, Paul wrote: I'm trying to build a Bare Bones 'OS' via example. Example says to compile with "gdc -c kernel.main.d -o kernel.main.o -g" I'm having trouble getting GDC all set up..as I'm a rank amateur. So, I tried compiling the example below with DM

Re: Why my app require MSVCR120.dll?

2015-11-06 Thread Timo Sintonen via Digitalmars-d-learn
On Friday, 6 November 2015 at 16:21:35 UTC, Suliman wrote: On Friday, 6 November 2015 at 13:50:56 UTC, Kagamin wrote: MSVCR is a C runtime. On Linux it will depend on a C runtime too. But which part of my App depend on C runtime? I have an early draft to explain the libraries here: https://b

Re: Startup files for STM32F4xx

2015-04-25 Thread Timo Sintonen via Digitalmars-d-learn
On Sunday, 26 April 2015 at 00:52:56 UTC, Mike wrote: On Saturday, 25 April 2015 at 16:32:50 UTC, Timo Sintonen wrote: I think there's a few gems that can be cherry-picked out of Phobos, especially for metaprogramming: std.traits std.typecons std.typetuple There are also a couple things in

Re: Startup files for STM32F4xx

2015-04-25 Thread Timo Sintonen via Digitalmars-d-learn
On Saturday, 25 April 2015 at 17:04:18 UTC, Jens Bauer wrote: I think volatileLoad and volatileStore are intended for this (please correct me if my understanding is wrong). Yes. Actually I am not sure whether they already exist in gdc or not. Try to write for example regs.cmdr |= 0x20 with

Re: Startup files for STM32F4xx

2015-04-25 Thread Timo Sintonen via Digitalmars-d-learn
On Saturday, 25 April 2015 at 11:56:55 UTC, Martin Nowak wrote: You better dismiss the idea of using druntime/phobos. They are not optimized for code size and contain a lot of stuff that'll never work. You can replace the core.stdc headers with bindings for nanolib, but again it's not necessar

Re: Startup files for STM32F4xx

2015-04-25 Thread Timo Sintonen via Digitalmars-d-learn
Before you start to write device drivers I remind you that it is not possible to just write and read the peripheral registers via pointers. The compiler will do optimizations like omit reads and writes or reorder them. My very simple uart driver is here: https://bitbucket.org/timosi/minlibd/s