[syslinux] Time to set a coding style for Syslinux?
H. Peter Anvin
hpa at zytor.com
Tue May 26 16:09:59 PDT 2009
Sebastian Herbszt wrote:
>
> What about the assembly code? Any style recommendations?
>
Yes, and they'll be inconsistent, but matches existing style. For starters:
For NASM code:
- two tab indent, no tab between opcode and operands
- ; comments
- Use "section .foo"; section flags to in layout.inc
For GAS code:
- one tab indent, tab between opcode and operands
- C-style comments
- in most cases, labels go on the line before
- use `.section ".foo","flags"' not .text, .data etc
- we may want to have an include file for section macros
-hpa
More information about the Syslinux
mailing list