I have read in a lot of places that assembly language is not usually used to create complete programs, but is used by other programs to make certain procedures more efficient, particularly the ones that are called a couple thousand times a second. I am wondering how small bits of assembly code are incorporated into larger programs.
I thought that a small executable could be made and then run from another program, but that seems inefficient.
Then I thought about the inline assembly for Visual Studio, but that's specific to Microsoft, and it seems like there would be a better way.
So how can small bits of assembly code be used within a larger program without creating separate programs or using the Visual Studio inline assembly?