We already know how to create and use functions in our source code. But the functions do not have to reside in the same file as our main program. We can write and assemble these functions in a separate file and link them in when building the program. The function printf, which we already used several times, is an example of an external function. In the source file where you plan to use the external function, you declare it with the keyword extern , and the assembler knows it does not have to look for the source of the function. The assembler will assume that the function is already assembled ...
14. External Functions
Get Beginning x64 Assembly Programming: From Novice to AVX Professional now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.