Thread overview | |||||||||
---|---|---|---|---|---|---|---|---|---|
|
August 12, 2008 File by file or all files at the same time. | ||||
---|---|---|---|---|
| ||||
Hi, Hi should I compile .EXEs and .LIBs? one file at a time and link all .OBJs files or pass all files to the compiler at once? I'm on windows using both, DMD and GDC. Thanks. |
August 12, 2008 Re: File by file or all files at the same time. | ||||
---|---|---|---|---|
| ||||
Posted in reply to lurker | lurker Wrote:
> Hi should I compile .EXEs and .LIBs?
s/Hi should/How should/
|
August 12, 2008 Re: File by file or all files at the same time. | ||||
---|---|---|---|---|
| ||||
Posted in reply to lurker | "lurker" <lurker1024@mailinator.com> wrote in message news:g7qo3o$2vff$1@digitalmars.com... > Hi, > > Hi should I compile .EXEs and .LIBs? one file at a time and link all .OBJs files or pass all files to the compiler at once? > > I'm on windows using both, DMD and GDC. > > Thanks. It's entirely up to you. Or rather, it _should_ be up to your build tool, because if you're not using rebuild or bud, you're probably doin it wrong. |
August 12, 2008 Re: File by file or all files at the same time. | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jarrett Billingsley | On Tue, 12 Aug 2008 00:30:20 -0400, Jarrett Billingsley wrote:
> "lurker" <lurker1024@mailinator.com> wrote in message news:g7qo3o$2vff$1@digitalmars.com...
>> Hi,
>>
>> Hi should I compile .EXEs and .LIBs? one file at a time and link all .OBJs files or pass all files to the compiler at once?
>>
>> I'm on windows using both, DMD and GDC.
>>
>> Thanks.
>
> It's entirely up to you. Or rather, it _should_ be up to your build tool, because if you're not using rebuild or bud, you're probably doin it wrong.
I often use a makefile (available everywhere). :P
But DSSS/rebuild or bud are easier to use.
|
August 12, 2008 Re: File by file or all files at the same time. | ||||
---|---|---|---|---|
| ||||
Posted in reply to Moritz Warning | On Tue, 12 Aug 2008 11:58:12 +0400, Moritz Warning <moritzwarning@web.de> wrote:
> On Tue, 12 Aug 2008 00:30:20 -0400, Jarrett Billingsley wrote:
>
>> "lurker" <lurker1024@mailinator.com> wrote in message
>> news:g7qo3o$2vff$1@digitalmars.com...
>>> Hi,
>>>
>>> Hi should I compile .EXEs and .LIBs? one file at a time and link all
>>> .OBJs files or pass all files to the compiler at once?
>>>
>>> I'm on windows using both, DMD and GDC.
>>>
>>> Thanks.
>>
>> It's entirely up to you. Or rather, it _should_ be up to your build
>> tool, because if you're not using rebuild or bud, you're probably doin
>> it wrong.
>
> I often use a makefile (available everywhere). :P
> But DSSS/rebuild or bud are easier to use.
I use a script of mine that picks up files in some directory according to a rule defined in .build (or *.d/*.di if none present - default rule) and outputs to stdout. An output is then redirected to some file, custom parameters added and passed to dmd as following: "dmd @commands".
It is very fast and flexible.
btw, I use bud and dsss, too.
|
August 12, 2008 Re: File by file or all files at the same time. | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jarrett Billingsley | Jarrett Billingsley Wrote:
> "lurker" <lurker1024@mailinator.com> wrote in message
> news:g7qo3o$2vff$1@digitalmars.com...
> It's entirely up to you. Or rather, it _should_ be up to your build tool,
> because if you're not using rebuild or bud, you're probably doin it wrong.
No, I'm not using DSSS. Or rather, I can't use DSSS or bud because of some stupid requirement.
Still, I remember there where some issues building all files at once with DMD and wanted to know if it's still the case and if GDC has the same problem also.
I need to build DLLs, Lib files and some EXEs.
Thanks
|
August 12, 2008 Re: File by file or all files at the same time. | ||||
---|---|---|---|---|
| ||||
Posted in reply to lurker | If there are issues building all files at once, which I doubt, they are bound to be solved soon. And I don't think GDC will have the same issues, since it has a different back-end than DMD.
Like others say, how you build it it's up to you. There are several factors that might be involved:
- Do you need fast compile times? building all files at once is probably faster if all files need to be compiled. If only a few files need to be recompiled then the fastest way is to compile every file seperately.
- Is memory a problem? building the files one at a time should take less memory.
These factors usually only apply to huge programs and are pretty much negligable otherwise.
Personally I build one file at the time. No need to compile files that haven't changed that way. I don't like the inefficiency of building all files, eventhough I don't think I would notice the difference in most cases.
I'd suggest you to just pick one. Trying them both out yourself probably takes less time than waiting for the right answer to come along here. Since you're worried about issues that might occur with an all in one compile, why not try one at a time.
Cheers,
Boyd.
-------
On Tue, 12 Aug 2008 13:55:43 -0400, lurker <lurker1024@mailinator.com> wrote:
> Jarrett Billingsley Wrote:
>
>> "lurker" <lurker1024@mailinator.com> wrote in message
>> news:g7qo3o$2vff$1@digitalmars.com...
>> It's entirely up to you. Or rather, it _should_ be up to your build tool,
>> because if you're not using rebuild or bud, you're probably doin it wrong.
>
> No, I'm not using DSSS. Or rather, I can't use DSSS or bud because of some stupid requirement.
>
> Still, I remember there where some issues building all files at once with DMD and wanted to know if it's still the case and if GDC has the same problem also.
>
> I need to build DLLs, Lib files and some EXEs.
>
> Thanks
|
Copyright © 1999-2021 by the D Language Foundation