[cfe-dev] RFC: Add a way to interleave source code in assembler output

Hal Finkel via cfe-dev cfe-dev at lists.llvm.org
Tue Mar 14 12:34:14 PDT 2017


On 03/13/2017 11:30 AM, Roger Ferrer Ibanez via cfe-dev wrote:
>
> Hi all,
>
> I’ve put a WIP implementation of this feature in review in
>

Thanks! This is a really important feature for us to have.

> Llvm: https://reviews.llvm.org/D30897
>
> Clang: https://reviews.llvm.org/D30898
>
> It is still unclear how can I  test this. I understand that we avoid 
> end-to-end tests, so this looks like it should be mostly tested in the 
> llvm side and in clang just make sure we forward the flags correctly.
>

Yes, this is how we'd do this.

  -Hal

> Suggestions for improvements are very welcome.
>
> Kind regards,
>
> Roger
>
> *From:*Andrey Bokhanko [mailto:andreybokhanko at gmail.com]
> *Sent:* 05 February 2017 21:33
> *To:* Roger Ferrer Ibanez
> *Cc:* cfe-dev at lists.llvm.org; llvm-dev; nd
> *Subject:* Re: [cfe-dev] RFC: Add a way to interleave source code in 
> assembler output
>
> Hi Roger,
>
> I would *really* love to see this feature available -- writing in a 
> combination of C and inline assembler is still quite common in 
> embedded software development. Verbose asm would be a very useful tool 
> in debugging.
>
> ...speaking on inline assembler, I wonder how your implementation 
> works with it? Does it simply print a whole inline assembly statement 
> (from C source code) before printing it again (from generated assembler)?
>
> > For clang it would simply mean to add a flag like -fsource-asm or 
> maybe extend the meaning of -fverbose-asm (like it will happen in GCC 
> 7 but see some further comments below).
>
> I vote for the latter. GCC is still most commonly used compiler in 
> embedded development (for which generating assembler file is most 
> relevant) -- the closer we are to it, the better for everyone.
>
> Yours,
>
> Andrey
>
>
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev

-- 
Hal Finkel
Lead, Compiler Technology and Programming Languages
Leadership Computing Facility
Argonne National Laboratory

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20170314/8a5dc907/attachment.html>


More information about the cfe-dev mailing list