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

Popular posts from this blog

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -

mongodb - How to keep track of users making Stripe Payments -