doc: update coding guidelines

- add a rule for pointer arithmetic operation
 - add a rule about ABI conformance
 - update GCC reference

Signed-off-by: Shiqing Gao <shiqing.gao@intel.com>
This commit is contained in:
Shiqing Gao
2020-08-17 10:09:54 +08:00
committed by David Kinder
parent f60896951b
commit 24b89eb8c4
2 changed files with 63 additions and 16 deletions

View File

@@ -825,3 +825,16 @@ Compliant example::
movl $0x1, %eax
ABI Conformance
***************
ASM-ABI-01: The implementation of Assembly code shall conform to the System V x86/AMD ABI
=========================================================================================
The implementation of Assembly code shall conform to the function calling
sequence defined in System V Application Binary Interface AMD64 Architecture
Processor Supplement.
Refer to the `System V Application Binary Interface AMD64 Architecture Processor Supplement <https://software.intel.com/sites/default/files/article/402129/mpx-linux64-abi.pdf>`_.