Improve comments

This commit is contained in:
Andrew Noyes 2021-06-05 17:10:41 -07:00 committed by GitHub
parent cd5c0481cc
commit 0beb548e99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -81,7 +81,7 @@ def write_unix_asm(asmfile, functions, prefix):
#
# 2. Perform a tail-call to the function pointer that works for a
# function with any number of arguments. For example, since registers x0-x7 are used
# pass arguments in the arm calling convention we must not use x0-x7
# to pass arguments in the Arm calling convention we must not use x0-x7
# here.
#
# You can compile this example c program to get a rough idea of how to
@ -91,7 +91,7 @@ def write_unix_asm(asmfile, functions, prefix):
# typedef int (*function)();
# extern function f;
# int g() { return f(); }
# [anoyes@docker build]$ cc -S -O3 -fPIC test.c && grep -A 10 '^g:' test.[sS]
# $ cc -S -O3 -fPIC test.c && grep -A 10 '^g:' test.[sS]
# g:
# .LFB0:
# .cfi_startproc