Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
182 views

In the description of the x86 prefetch instructions, I found the following explanation for the instructions’ hint number "Fetches the line of data from memory that contains the byte specified ...
Cecil Ward's user avatar
0 votes
1 answer
209 views

I decided to build tilix by cloning the code from the repository. I understand that the compiler must be LDC, but I don’t know what exactly to change. dub build --build release But I stumbled upon the ...
user21884937's user avatar
4 votes
1 answer
903 views

Apologies in advance since I am not too knowledgeable on the topic yet and still in the process of learning about the inner workings of compilers. I am currently investigating the possibility of using ...
dreanor's user avatar
  • 75
3 votes
1 answer
148 views

I'm working on a project in the D language and I want to use a module from the standard library called std.sumtype. I'm on debian oldstable, and I've tried both GDC and LDC. DMD is unavailable, ...
VintiumDust's user avatar
1 vote
1 answer
118 views

I have the Arduino uno with rgb lcd shield. there is a very weird behavior with the buttons in one specific function. The function is called yes/no. It displays a message on the screen (working) the ...
julian bechtold's user avatar
0 votes
1 answer
536 views

tl;dr LDC compiles and links fine until the -static flag is used, then ld.gold cannot find the phobos or druntime libraries. OS: Gentoo 64-bit Kernel: 5.4.48 DMD version: 2.090 LDC2 version: 1.20.1 (...
samsonjm's user avatar
  • 270
3 votes
1 answer
789 views

I'm working on a very demanding project (actually an interpreter), exclusively written in D, and I'm wondering what type of optimizations would generally be recommended. The project makes heavy use of ...
Dr.Kameleon's user avatar
  • 22.8k
1 vote
2 answers
263 views

I was debugging a fairly simple program written in D, that seems to have a random chance to receive a SEGV signal. Upon further inspection I observed that using different compilers and build modes ...
adamgoldberg's user avatar
1 vote
1 answer
412 views

I have been using CodeBlocks with the Digital Mars D compiler and the LLVM Clang compiler for some time without any problems. Now I need to use the LDC D compiler and am having problems with the ...
V. V. Kozlov's user avatar
0 votes
1 answer
123 views

I'm using the latest LDC2 beta, and when running the compiler with -I (Look for imports also in ) it fails with unresolved externals. These are my commands. $ ldc2 "source\setup.d" -I "source" -J "...
Jacob Birkett's user avatar
2 votes
1 answer
385 views

I am linking D to OpenSsl using the Deimos openssl headers for D and am using the ldc 1.8.0 compiler, to try to encrypt a string as a small test. The encrypted byte array isn't consistent with what I ...
blipman17's user avatar
  • 541
1 vote
2 answers
405 views

This code with a contract: import std.stdio; int TestContract(int a) in { assert( a > 0); } do { return a + 1; } int main(string[] args) { auto a = 2; try { writeln(a," + 1 ...
Scooter's user avatar
  • 7,111
1 vote
2 answers
790 views

I am writing an application in D. It's compiled with the ldc2 compiler, using dub configuration (target type: executable). The compiled program creates a console window, which I do not need since the ...
Patrick Hennig's user avatar
1 vote
4 answers
1k views

main.d import std.stdio; void main() { writeln("Hello World !!!"); } when i compile and execute it is work perfectly But when i try ldc2 -output-ll main.d lli main.ll LLVM ERROR: Program ...
Barre_k's user avatar
  • 23
5 votes
1 answer
142 views

I'm trying to make an interop with C++ and D. And the thing I've found today is really messing my mind: objects are not being passed correctly in my program. It's better to show an example. I have ...
shybovycha's user avatar
  • 12.4k
6 votes
1 answer
1k views

I recently installed ldc through hombrew on my Mac and was testing out running a code as a script from the D wiki when I noticed that using ldmd2 to compile my program doesn't also run my program ...
Jem4687's user avatar
  • 331