I wrote some c header and I want to use it in assembly code. How can I do that? How to compile them?
example:
somefunc.h:
// somefunc.h
int int_func(){
// some code here
}
float float_func(){
// some code here
}
main_assembly_code.h:
section .text
global _start
_start:
call int_func
call float_func
mov eax,1
int 80h
I am using gcc for c, nasm for assembly and I am using linux.