<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jul 10, 2015 at 2:03 PM, regis portalez <span dir="ltr"><<a href="mailto:regis.portalez@altimesh.com" target="_blank">regis.portalez@altimesh.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="FR" link="#0563C1" vlink="#954F72"><div><p class="MsoNormal"><span lang="EN-US">Hi, <u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US">I’m willing to add a new language in clang. <u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US">I’d like to know what are the best practices before starting the actual implementation. <u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">I’m already (kind of) familiar with clang/llvm, but I don’t want to waste an excessive amount of time in trying lousy options. <u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">I synchronized clang on my local repository, and I read that <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__llvm.org_docs_tutorial_LangImpl1.html&d=AwMFAw&c=8hUWFZcy2Z-Za5rBPlktOQ&r=CnzuN65ENJ1H9py9XLiRvC_UQz6u3oG6GUNn7_wosSM&m=6aZcYSynvgyZEH3W-ii6Dcb4Z41I2g9jwnCnrXH8WkY&s=el6TF4MLEK_tjFoaZVRjPt6XujhWpS8BmQb5zcslcAQ&e=" target="_blank">http://llvm.org/docs/tutorial/LangImpl1.html</a>. <u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US">I’d like to get feedbacks from people who actually did that kind of work, and know which are the pitfalls. <u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US">To make it short, these are my questions: <u></u><u></u></span></p><p><u></u><span lang="EN-US"><span>-<span style="font:7.0pt "Times New Roman"">          </span></span></span><u></u><span lang="EN-US">Branching strategy : what is the best way? Should I branch the whole llvm repository? <u></u><u></u></span></p><p><u></u><span lang="EN-US"><span>-<span style="font:7.0pt "Times New Roman"">          </span></span></span><u></u><span lang="EN-US">Code writing: Should I start writing code directly, targeting a small subset of the target language and iterate from that? Should I instead think a lot about my stuff and consider writing code once I’m sure I’ll be able to compile the entire language?<u></u><u></u></span></p><p><u></u><span lang="EN-US"><span>-<span style="font:7.0pt "Times New Roman"">          </span></span></span><u></u><span lang="EN-US">Commit : considering I’ve written a really good clang extension, and I want that to make it public. How can I merge to the trunk?</span> </p></div></div></blockquote><div><br></div><div>What language/extension do you want to add?</div><div><br></div><div>Eli</div><div> </div></div><br></div></div>