Re: Installing GDC / Linux / x86-64 when apt-get doesn’t work

2023-07-10 Thread Cecil Ward via Digitalmars-d-learn
On Tuesday, 11 July 2023 at 05:49:36 UTC, Sergey wrote: On Tuesday, 11 July 2023 at 04:11:38 UTC, Cecil Ward wrote: I’m trying to install GDC on a new Linux box and I don’t know what I’m doing. Background: I have installed LDC successfully and have installed GDC on a Raspberry Pi using 32-bit A

Re: Installing GDC / Linux / x86-64 when apt-get doesn’t work

2023-07-10 Thread Sergey via Digitalmars-d-learn
On Tuesday, 11 July 2023 at 04:11:38 UTC, Cecil Ward wrote: I’m trying to install GDC on a new Linux box and I don’t know what I’m doing. Background: I have installed LDC successfully and have installed GDC on a Raspberry Pi using 32-bit ARM. For some reason the apt-get command doesn’t work on

Re: Installing GDC / Linux / x86-64 when apt-get doesn’t work

2023-07-10 Thread Cecil Ward via Digitalmars-d-learn
On Tuesday, 11 July 2023 at 04:11:38 UTC, Cecil Ward wrote: I’m trying to install GDC on a new Linux box and I don’t know what I’m doing. Background: I have installed LDC successfully and have installed GDC on a Raspberry Pi using 32-bit ARM. For some reason the apt-get command doesn’t work on

Installing GDC / Linux / x86-64 when apt-get doesn’t work

2023-07-10 Thread Cecil Ward via Digitalmars-d-learn
I’m trying to install GDC on a new Linux box and I don’t know what I’m doing. Background: I have installed LDC successfully and have installed GDC on a Raspberry Pi using 32-bit ARM. For some reason the apt-get command doesn’t work on this machine, don’t know why. The machine is a virtual serv

Re: Compiling to RiscV32

2023-07-10 Thread Kagamin via Digitalmars-d-learn
Worked for me on ldc 1.20 https://forum.dlang.org/post/vuxuftogvszztdrrt...@forum.dlang.org

Re: Compiling to RiscV32

2023-07-10 Thread Kagamin via Digitalmars-d-learn
You try to use C declarations, but they are specific to each C library, and different C libraries have different declarations, so headers can't decide which C library declarations to use. Try -mtriple=riscv32-unknown-linux

Re: Pre-expanding alloc cell(s) / reserving space for an associative array

2023-07-10 Thread Steven Schveighoffer via Digitalmars-d-learn
On 7/10/23 8:44 AM, H. S. Teoh wrote: On Mon, Jul 10, 2023 at 09:30:57AM +, IchorDev via Digitalmars-d-learn wrote: [...] From the spec it sounds as though (but good luck testing for sure) that if you have (for example) 6 big dummy key-value pairs in the AA to begin with, then if you use `

Re: Pre-expanding alloc cell(s) / reserving space for an associative array

2023-07-10 Thread H. S. Teoh via Digitalmars-d-learn
On Mon, Jul 10, 2023 at 09:30:57AM +, IchorDev via Digitalmars-d-learn wrote: [...] > From the spec it sounds as though (but good luck testing for sure) > that if you have (for example) 6 big dummy key-value pairs in the AA > to begin with, then if you use `.clear` it "Removes all remaining ke

Re: Inlined functions and their original bodies - bloat

2023-07-10 Thread kinke via Digitalmars-d-learn
The 'bloat' is usually gotten rid of by the linker if really unreferenced in the binary being linked. There's a little trick to make sure the function is *always* inlined, across modules too, allowing to suppress the then guaranteed unused function symbol - converting it to a function literal

Re: Pre-expanding alloc cell(s) / reserving space for an associative array

2023-07-10 Thread IchorDev via Digitalmars-d-learn
On Sunday, 9 July 2023 at 20:24:24 UTC, Cecil Ward wrote: Before I posted a question about avoiding unnecessary allocs/reallocs when adding entries to an array like so uint[ dstring ] arr; when I build it up from nothing with successive insertions. The array is accessed by a key that is a