Re: Reducing source code: weak+alias values in array

2015-05-02 Thread Jens Bauer via Digitalmars-d-learn
On Saturday, 2 May 2015 at 13:08:27 UTC, Artur Skawina wrote: On 05/02/15 05:28, Jens Bauer via Digitalmars-d-learn wrote: On Saturday, 2 May 2015 at 03:21:38 UTC, Jens Bauer wrote: For some reason, my build time has increased dramatically... Building with 1 vector takes 0.6 seconds. Building

Re: Reducing source code: weak+alias values in array

2015-05-02 Thread Artur Skawina via Digitalmars-d-learn
On 05/02/15 05:28, Jens Bauer via Digitalmars-d-learn wrote: > On Saturday, 2 May 2015 at 03:21:38 UTC, Jens Bauer wrote: >> For some reason, my build time has increased dramatically... >> >> Building with 1 vector takes 0.6 seconds. >> Building with 2 vector takes 0.7 seconds. >> Building with 4 v

Re: Reducing source code: weak+alias values in array

2015-05-01 Thread Jens Bauer via Digitalmars-d-learn
On Saturday, 2 May 2015 at 03:21:38 UTC, Jens Bauer wrote: For some reason, my build time has increased dramatically... Building with 1 vector takes 0.6 seconds. Building with 2 vector takes 0.7 seconds. Building with 4 vector takes 0.9 seconds. Building with 8 vector takes 1.1 seconds. Building

Re: Reducing source code: weak+alias values in array

2015-05-01 Thread Jens Bauer via Digitalmars-d-learn
On 04/27/15 19:49, Jens Bauer via Digitalmars-d-learn wrote: I was wondering if there's a way to reduce my bulky startup files a bit. On Wednesday, 29 April 2015 at 13:58:14 UTC, Artur Skawina wrote: mixin(VectorFuncs!(q{ PTR stack = {`_stack`}; EXC Reset_Handler = {`defaultRes

Re: Reducing source code: weak+alias values in array

2015-05-01 Thread Jens Bauer via Digitalmars-d-learn
On Friday, 1 May 2015 at 21:36:29 UTC, Artur Skawina wrote: On 05/01/15 22:29, Jens Bauer via Digitalmars-d-learn wrote: On Wednesday, 29 April 2015 at 13:58:14 UTC, Artur Skawina wrote: Use `@weakalias!"blah"` instead: enum weakalias(string A) = gcc.attribute.attribute("alias", A); @

Re: Reducing source code: weak+alias values in array

2015-05-01 Thread Artur Skawina via Digitalmars-d-learn
On 05/01/15 22:29, Jens Bauer via Digitalmars-d-learn wrote: > On Wednesday, 29 April 2015 at 13:58:14 UTC, Artur Skawina wrote: >> On 04/27/15 19:49, Jens Bauer via Digitalmars-d-learn wrote: >>> I was wondering if there's a way to reduce my bulky startup files a bit. > {snip} > >> Just create a

Re: Reducing source code: weak+alias values in array

2015-05-01 Thread Jens Bauer via Digitalmars-d-learn
On Wednesday, 29 April 2015 at 13:58:14 UTC, Artur Skawina wrote: On 04/27/15 19:49, Jens Bauer via Digitalmars-d-learn wrote: I was wondering if there's a way to reduce my bulky startup files a bit. {snip} Just create a helper module, which the startup files can all use to generate the data

Re: Reducing source code: weak+alias values in array

2015-04-29 Thread Jens Bauer via Digitalmars-d-learn
On Wednesday, 29 April 2015 at 13:58:14 UTC, Artur Skawina wrote: On 04/27/15 19:49, Jens Bauer via Digitalmars-d-learn wrote: I was wondering if there's a way to reduce my bulky startup files a bit. If using the GNU Assembler (GAS), then one can reduce the code using a macro like this: {s

Re: Reducing source code: weak+alias values in array

2015-04-29 Thread Artur Skawina via Digitalmars-d-learn
On 04/27/15 19:49, Jens Bauer via Digitalmars-d-learn wrote: > I was wondering if there's a way to reduce my bulky startup files a bit. > > If using the GNU Assembler (GAS), then one can reduce the code using a macro > like this: > > > /* The EXC macro makes a weak+alias for the > * symbol 'va