gcc - Include assembly file in another assembly file -
i have 2 files, main.s , test.s test.s looks this:
test: add a1,a2,a2
...and main.s looks this:
main: call test
(very senseless examples). how can include test in main? using gcc this:
gcc -o main main.c
but have no idea how can use test in there...any help?
you can include file else in gcc:
#include"test.s"
were using nasm use:
%include "test.s"
Comments
Post a Comment