Re: Size of Compiled Program

2016-01-05 Thread Jacob Carlborg via Digitalmars-d-learn
On 2016-01-04 17:56, Martin Tschierschke wrote: Oh, thats interesting. When I tried to run the compiled "prime" on my notebook, with the "same" Ubuntu release, I got an error, may be its 32 not 64 Bit? Any hint? You can run the "file" command to see which architecture an executable is built

Size of Compiled Program

2016-01-04 Thread Martin Tschierschke via Digitalmars-d-learn
When I was writing a small speed test - D versus Ruby, calculating the first n prime numbers, I realized, that for small n Ruby may be faster, than compiling and executing with D. But for n = 1,000,000 D outperforms Ruby by app. 10x. Looking at the size of my prime executable, it was around

Re: Size of Compiled Program

2016-01-04 Thread Marc Schütz via Digitalmars-d-learn
On Monday, 4 January 2016 at 13:49:03 UTC, Martin Tschierschke wrote: When I was writing a small speed test - D versus Ruby, calculating the first n prime numbers, I realized, that for small n Ruby may be faster, than compiling and executing with D. But for n = 1,000,000 D outperforms Ruby by

Re: Size of Compiled Program

2016-01-04 Thread Basile B. via Digitalmars-d-learn
On Monday, 4 January 2016 at 13:49:03 UTC, Martin Tschierschke wrote: When I was writing a small speed test - D versus Ruby, calculating the first n prime numbers, I realized, that for small n Ruby may be faster, than compiling and executing with D. But for n = 1,000,000 D outperforms Ruby by

Re: Size of Compiled Program

2016-01-04 Thread Adam D. Ruppe via Digitalmars-d-learn
On Monday, 4 January 2016 at 13:49:03 UTC, Martin Tschierschke wrote: When I was writing a small speed test - D versus Ruby The smallest possible ruby program has about ~5 MB of dependencies, outside the operating system (the ruby runtime itself). The D program has none. It carries its

Re: Size of Compiled Program

2016-01-04 Thread Martin Tschierschke via Digitalmars-d-learn
On Monday, 4 January 2016 at 14:51:59 UTC, Adam D. Ruppe wrote: On Monday, 4 January 2016 at 13:49:03 UTC, Martin Tschierschke wrote: When I was writing a small speed test - D versus Ruby The smallest possible ruby program has about ~5 MB of dependencies, outside the operating system (the

Re: Size of Compiled Program

2016-01-04 Thread Martin Tschierschke via Digitalmars-d-learn
On Monday, 4 January 2016 at 14:01:18 UTC, Basile B. wrote: On Monday, 4 January 2016 at 13:49:03 UTC, Martin Tschierschke wrote: [...] - if debug info are generated this increases the size. - if bounds checking is turned off there is some code generated for each array operation - if

Re: Size of Compiled Program

2016-01-04 Thread Martin Tschierschke via Digitalmars-d-learn
On Monday, 4 January 2016 at 14:16:54 UTC, Marc Schütz wrote: On Monday, 4 January 2016 at 13:49:03 UTC, Martin Tschierschke wrote: When I was writing a small speed test - D versus Ruby, calculating the first n prime numbers, I realized, that for small n Ruby may be faster, than compiling and

Re: Size of Compiled Program

2016-01-04 Thread Adam D. Ruppe via Digitalmars-d-learn
On Monday, 4 January 2016 at 16:56:15 UTC, Martin Tschierschke with the "same" Ubuntu release, I got an error, may be its 32 not 64 Bit? Any hint? Yeah, probably.