<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Aug 7, 2019 at 8:29 AM Sebastian Huber <<a href="mailto:sebastian.huber@embedded-brains.de">sebastian.huber@embedded-brains.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">----- Am 7. Aug 2019 um 15:20 schrieb joel <a href="mailto:joel@rtems.org" target="_blank">joel@rtems.org</a>:<br>
<br>
> Hi<br>
> <br>
> Most times I teach a class, I end up walking though initialization of some<br>
> SPARC<br>
> BSP and thus the SPARC shared start.S. This file is internally inconsistent<br>
> and I<br>
> didn't remember us having a defined style for assembly language files.<br>
> Specific<br>
> issues in this file:<br>
> <br>
> + tabs vs spaces to separate label, instructions, and comment<br>
> + line 376 instruction doesn't align<br>
> <br>
> How do we want to format assembly language files?<br>
> <br>
> And did I miss any style guidance?<br>
<br>
I don't think we have a style guide for assembly language.<br>
<br>
I would prefer to use a style similar to the GCC output.<br></blockquote><div><br></div><div>That uses a tab for placing the instruction and one between the</div><div>mnemonic and arguments. </div><div><br></div><div>But there are no comments past the instruction. Tabs there also?</div><div><br></div><div>And it looks like tabstop=8 for it to look reasonable.</div><div><br></div><div>Is that what you think?</div><div><br></div><div>--joel</div></div></div>