From b8d714b21d7d1214cf10884ecde8b75307b1d8c6 Mon Sep 17 00:00:00 2001 From: terrynini Date: Thu, 15 Mar 2018 13:55:10 +0800 Subject: [PATCH] update_readme --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/README.md b/README.md index 57105ff..9b42e0f 100644 --- a/README.md +++ b/README.md @@ -13,3 +13,21 @@ B: backpack??
Map will be randomly generate every time +# Call C function in Assembly + +## generate a *.o file +> $gcc -c test.c -o test.o + +or add pragma to tell IDE not to link +> #pragma src
+ + +## generate a *.a file + +>ar rcs libtst.a test.o + + +## Gcc tips +add this directive to notify gas using Intel syntax +>.intel_syntax noprefix +