[prev in list] [next in list] [prev in thread] [next in thread] 

List:       distcc
Subject:    Re: [distcc] How to use another compiler with Distcc?
From:       Martin Pool <mbp () sourcefrog ! net>
Date:       2012-02-06 0:19:54
Message-ID: CAA9uavB6nX6OOY6Sn+EzWdoweyheRPdbE-iLQAgoe+XgwGXNug () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


I think adding a vtable structure per compiler would be a good way to go.
On Feb 1, 2012 9:28 PM, "James Hanley" <jhanley@dgtlrift.com> wrote:

> At my previous company, we patched it to understand dcc (Diab
> Complier) & das (Diab assembler) for 68k & Power arch - it was a
> little complicated as we were constantly checking arg 0 as to how the
> args should be processed, but it did work and was still compatible
> with gcc.
>
> In retrospect, I think the approach that we could have taken for a
> submitable patch would have been to modify distcc to have a structure
> array for each compiler supported where the structure has the compiler
> executable name to key off of and put that instance in that mode, and
> have the code for argument handling specific to the compiler be
> function pointers within the structure.  This would have given much
> more flexibility, and made it easier to add any c or assembler to the
> code base, but it would have been a radical change to the code base,
> and I feared not excepted as a patch making it difficult for us to
> pull updates later.
>
> -Jim
>
>
> On Jan 31, 2012, at 10:07 PM, Martin Pool <mbp@sourcefrog.net> wrote:
>
> > On 14 December 2011 14:08, Wang, Zhou (NSN - CN/Hangzhou)
> > <zhou.wang@nsn.com> wrote:
> >>
> >> Hi,
> >>
> >>     We started a new project,and we want to use Distcc to do distributed
> >> compilation,but our official compiler is not GCC(it's TI's compiler),so
> we
> >> want to use another compiler instead of GCC.
> >>
> >>     Could you tell me how to do that?
> >>
> >>     Thanks!
> >
> > Hi,
> >
> > I apologize for the delay.  Your mail was accidentally stuck in the spam
> queue.
> >
> > I think it will need changes to distcc to understand the TI compiler
> > command line options.  People have talked about doing this in the past
> > but I don't think anyone has actually sent a patch.
> >
> > --
> > Martin
> > __
> > distcc mailing list            http://distcc.samba.org/
> > To unsubscribe or change options:
> > https://lists.samba.org/mailman/listinfo/distcc
> __
> distcc mailing list            http://distcc.samba.org/
> To unsubscribe or change options:
> https://lists.samba.org/mailman/listinfo/distcc
>
>

[Attachment #5 (text/html)]

<p>I think adding a vtable structure per compiler would be a good way to go.</p>
<div class="gmail_quote">On Feb 1, 2012 9:28 PM, &quot;James Hanley&quot; &lt;<a \
href="mailto:jhanley@dgtlrift.com">jhanley@dgtlrift.com</a>&gt; wrote:<br \
type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 \
.8ex;border-left:1px #ccc solid;padding-left:1ex"> At my previous company, we patched \
it to understand dcc (Diab<br> Complier) &amp; das (Diab assembler) for 68k &amp; \
Power arch - it was a<br> little complicated as we were constantly checking arg 0 as \
to how the<br> args should be processed, but it did work and was still compatible<br>
with gcc.<br>
<br>
In retrospect, I think the approach that we could have taken for a<br>
submitable patch would have been to modify distcc to have a structure<br>
array for each compiler supported where the structure has the compiler<br>
executable name to key off of and put that instance in that mode, and<br>
have the code for argument handling specific to the compiler be<br>
function pointers within the structure.   This would have given much<br>
more flexibility, and made it easier to add any c or assembler to the<br>
code base, but it would have been a radical change to the code base,<br>
and I feared not excepted as a patch making it difficult for us to<br>
pull updates later.<br>
<br>
-Jim<br>
<br>
<br>
On Jan 31, 2012, at 10:07 PM, Martin Pool &lt;<a \
href="mailto:mbp@sourcefrog.net">mbp@sourcefrog.net</a>&gt; wrote:<br> <br>
&gt; On 14 December 2011 14:08, Wang, Zhou (NSN - CN/Hangzhou)<br>
&gt; &lt;<a href="mailto:zhou.wang@nsn.com">zhou.wang@nsn.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Hi,<br>
&gt;&gt;<br>
&gt;&gt;       We started a new project,and we want to use Distcc to do \
distributed<br> &gt;&gt; compilation,but our official compiler is not GCC(it&#39;s \
TI&#39;s compiler),so we<br> &gt;&gt; want to use another compiler instead of \
GCC.<br> &gt;&gt;<br>
&gt;&gt;       Could you tell me how to do that?<br>
&gt;&gt;<br>
&gt;&gt;       Thanks!<br>
&gt;<br>
&gt; Hi,<br>
&gt;<br>
&gt; I apologize for the delay.   Your mail was accidentally stuck in the spam \
queue.<br> &gt;<br>
&gt; I think it will need changes to distcc to understand the TI compiler<br>
&gt; command line options.   People have talked about doing this in the past<br>
&gt; but I don&#39;t think anyone has actually sent a patch.<br>
&gt;<br>
&gt; --<br>
&gt; Martin<br>
&gt; __<br>
&gt; distcc mailing list                  <a href="http://distcc.samba.org/" \
target="_blank">http://distcc.samba.org/</a><br> &gt; To unsubscribe or change \
options:<br> &gt; <a href="https://lists.samba.org/mailman/listinfo/distcc" \
target="_blank">https://lists.samba.org/mailman/listinfo/distcc</a><br> __<br>
distcc mailing list                  <a href="http://distcc.samba.org/" \
target="_blank">http://distcc.samba.org/</a><br> To unsubscribe or change \
options:<br> <a href="https://lists.samba.org/mailman/listinfo/distcc" \
target="_blank">https://lists.samba.org/mailman/listinfo/distcc</a><br> <br>
</blockquote></div>



__
distcc mailing list            http://distcc.samba.org/
To unsubscribe or change options:
https://lists.samba.org/mailman/listinfo/distcc

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic