<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, "James Hanley" <<a href="mailto:jhanley@dgtlrift.com">jhanley@dgtlrift.com</a>> 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) & das (Diab assembler) for 68k & 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 <<a href="mailto:mbp@sourcefrog.net">mbp@sourcefrog.net</a>> wrote:<br>
<br>
> On 14 December 2011 14:08, Wang, Zhou (NSN - CN/Hangzhou)<br>
> <<a href="mailto:zhou.wang@nsn.com">zhou.wang@nsn.com</a>> wrote:<br>
>><br>
>> Hi,<br>
>><br>
>>     We started a new project,and we want to use Distcc to do distributed<br>
>> compilation,but our official compiler is not GCC(it's TI's compiler),so we<br>
>> want to use another compiler instead of GCC.<br>
>><br>
>>     Could you tell me how to do that?<br>
>><br>
>>     Thanks!<br>
><br>
> Hi,<br>
><br>
> I apologize for the delay.  Your mail was accidentally stuck in the spam queue.<br>
><br>
> I think it will need changes to distcc to understand the TI compiler<br>
> command line options.  People have talked about doing this in the past<br>
> but I don't think anyone has actually sent a patch.<br>
><br>
> --<br>
> Martin<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>
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>