0
我剛剛在學校完成了一項強制性任務,我即將交付它。關於使用裝配與c
但後來我遇到了一些不熟悉的東西,頭文件。 :(
我已經有了:
test-program.c
task_header.h
function1.s
function2.s
function3.s
function4.s
測試program.c:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "task_header.h"
.
..
...
task_header.h:
extern void function1(...);
extern void function2(...);
extern int function3(...);
extern void function4(...);
然後我用命令:
gcc -m32 -o runtest test-program.c function1.s function2.s function3.s function4.s
這是一個正確的方法來做到這一點,還是可以修改它?所以,我可以輸入:
gcc -m32 -o runtest test-program.c
?