<div dir="ltr"><span style="color:rgb(33,33,33)">> Is there a typo somewhere in there?  "llvm-as" and "GNU as" are </span><span style="color:rgb(33,33,33)">completely unrelated.<br></span><br>It wasn't a typo unfortunately but I should have said llvm-mc. I just googled "llvm as" saw "llvm-as" and thought "oh that must be the GNU CLI compatible version of llvm-mc". That's what making assumptions gets me. I suppose a symlink to llvm-mc or something might be better. Clang already supports assembly in a command line compatible way with gcc as well. I don't really know what the proper thing to do there would be and it would depend on how different projects are using those tools.<br><br>> What are some ways in which llvm-object still could use work? Depending on how much work remains, maybe it would be an interesting GSOC project?<br><br>After the switch to TableGen for command line arguments are landed filling out all the llvm-strip options would be one part. I've been meaning to implement --only-keep-debug for a while which is less trivial than the other existing strip options. Other options to implement include --discard-all, --discard-locals, section patterns, some missing short aliases, --set-section-flags, --dump-section, --strip-unneeded-symbols, etc...<br><br>While all this probably should probably be done at some point, I think it's important to find an actual project that use some missing features or working on features that people are actually requesting (for llvm-objcopy --only-keep-debug is the only one that fits that criteria). Otherwise you fall into a trap of implementing things for which drop in replacements don't matter. Those listed options above are things that I've seen here and there but are not necessarily widely or critically used.</div><br><div class="gmail_quote"><div dir="ltr">On Mon, Mar 19, 2018 at 12:25 PM Sebastiaan Peters <<a href="mailto:sebaspe97@hotmail.com">sebaspe97@hotmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div dir="ltr">
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgba(0,0,0,0)">
Hi Jake,</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgba(0,0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgba(0,0,0,0)">
Thank you for your reply! That would explain a lot.</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgba(0,0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgba(0,0,0,0)">
What are some ways in which llvm-object still could use work?</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgba(0,0,0,0)">
Depending on how much work remains, maybe it would be an interesting GSOC project?</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgba(0,0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgba(0,0,0,0)">
Kind Regards,</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgba(0,0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgba(0,0,0,0)">
Sebastiaan Peters</div>
<hr style="display:inline-block;width:98%">
<div id="m_-902139057416154468divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Jake Ehrlich <<a href="mailto:jakehehrlich@google.com" target="_blank">jakehehrlich@google.com</a>><br>
<b>Sent:</b> Monday, March 19, 2018 19:49<br>
<b>To:</b> Sebastiaan Peters<br>
<b>Cc:</b> <a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<b>Subject:</b> Re: [llvm-dev] [GSOC 2018] GNU Binutils replacement</font>
<div> </div>
</div></div><div dir="ltr">
<div>
<div dir="ltr">Hi Sebastiaan,
<div><br>
</div>
<div>I'm not the creator of the this GSOC project but I might be able to help. I'm the author of llvm-objcopy, and the soon to be creator of the symlink llvm-strip to llvm-objcopy (which currently doesn't exist). The reason llvm-objcopy and llvm-strip don't
 have documentation pages is because I haven't written them yet; I'll get on that!<br>
<br>
1. The goal is to work towards extending the existing interfaces so that the existing tools can be used as drop in replacements in more projects. Most tools that have GNU binutils equivalents have some GNU binutil CLI compatible interface. I think llvm-as could
 probably be extended slowly but surely to be a better more practical replacement for GNU as.<br>
<br>
2. What do you mean? It's already cli compatible.</div>
<div><br>
</div>
<div>3. They exist and are still being worked on! I've just been lazy about documentation. llvm-objcopy is actually the least mature GNU binutils replacement and could use lots more work.<br>
<br>
4. I'm not familiar enough with what people commonly use in bigger builds to say for sure what tools might be missing. In my team's experience llvm-objcopy was the last missing piece which is why I wrote it. If you find some projects that use a tool that is
 100% missing, You could work on implementing a small subset of features needed for one of those projects. I think it's more likely that existing tools will need to be extended however.<br>
<br>
5. Well I'm biased of course and would say llvm-objcopy. A better more unbiased answer would be to find a project that currently uses GNU binutils, build it using llvm instead of binutils, and see what fails/breaks. That way you don't go off and arbitrarily
 extend tool X with obscure feature Y that hardly anyone actually uses.<br>
<br>
I think Eric Christopher is the proposal and confirmed mentor and might have more to say.<br>
<br>
Best,</div>
<div>Jake</div>
</div>
<br>
<div class="m_-902139057416154468x_gmail_quote">
<div dir="ltr">On Fri, Mar 16, 2018 at 11:15 AM Sebastiaan Peters via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>> wrote:<br>
</div>
<blockquote class="m_-902139057416154468x_gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello everyone,<br>
<br>
My name is Sebastiaan Peters, an undergrad student from The Netherlands.<br>
<br>
The project for creating drop-in replacements for GNU Binutils peaked my interest. It would make my day (or my summer) being able to contribute to such a project.<br>
<br>
Since I have no experience with llvm besides some basic usage of clang, the first thing I tried was to find out what llvm tools are out there.<br>
However the more I research the more questions I got.<br>
I would very grateful if somebody could answer some of the following questions:<br>
<br>
1. Does this project apply to all llvm tools, or just those that have intersecting functionality with the existing GNU Binutils?<br>
For instance the llvm-assembler still provides the same functionality, but does will most likely not be a replacement for gnu-as considering the large amount of features it lacks (not being able to accept or target most architectures).<br>
<br>
2. LLD already exists as a drop-in replacement for the GNU linker for compilers[0], would it be desirable if an cli wrapper would be made for this?<br>
<br>
3. What happened to tools like llvm-objcopy and llvm-strip?<br>
Documentation is hard to find and are not included in the llvm tools documentation page[0].<br>
<br>
4. In the case of missing functionality between 2 tools, Is it the goal to patch up what is missing or to go on to the next tool?<br>
<br>
5. Is there a list of preferred tools that should be prioritized?<br>
<br>
Sorry if there is said anything that is incorrect, trying to get a clear picture of the entire project was quite overwhelming.<br>
<br>
Kind Regards,<br>
<br>
Sebastiaan Peters<br>
<br>
[0] <a href="https://lld.llvm.org/" rel="noreferrer" target="_blank">https://lld.llvm.org/</a><br>
[1] <a href="https://llvm.org/docs/CommandGuide/index.html" rel="noreferrer" target="_blank">
https://llvm.org/docs/CommandGuide/index.html</a><br>
<br>
<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote>
</div>
</div>
</div></blockquote></div>