Assembly Language Style

Sebastian Huber sebastian.huber at embedded-brains.de
Wed Aug 7 13:30:24 UTC 2019


----- Am 7. Aug 2019 um 15:20 schrieb joel joel at rtems.org:

> Hi
> 
> Most times I teach a class, I end up walking though initialization of some
> SPARC
> BSP and thus the SPARC shared start.S. This file is internally inconsistent
> and I
> didn't remember us having a defined style for assembly language files.
> Specific
> issues in this file:
> 
> + tabs vs spaces to separate label, instructions, and comment
> + line 376 instruction doesn't align
> 
> How do we want to format assembly language files?
> 
> And did I miss any style guidance?

I don't think we have a style guide for assembly language.

I would prefer to use a style similar to the GCC output.



More information about the devel mailing list