I know you can directly put ASM in C using ASM but I wondered is it possible to make a library in Assembly, compile it and then access functions your declared in that library from C?
So I know I should use pre written libraries but this is just for educational purposes and for fun! So for instance say I wanted to use a sys call to print out to the screen, now I wrote some assembly to do that and named the function print, I then compile this into some sort of lib file .so/.lib/.a what would I do at that point to refer to that function in that library?
Do I just write out the function and link it when compiling?
Thanks :)