6.7. Using C for ASCII Input and Output

The debugger, while a useful tool for exploration, is obviously not ideal for general input and output, especially for ASCII text strings. Textbook presentations of assembly language programming often imply that routines written in assembly language can be called from high-level languages, but—perhaps more by silence than by statement—routines written in a high-level language cannot or should not be called from assembly language programs. In actuality, mixed-language programming at the assembly language level is possible, but does require strict adherence to published calling standards.

6.7.1. GETPUT: Encapsulating C Functions

Our minimal illustration (Figure 6-6) involves a pair of C external routines, ...

Get Itanium® Architecture for Programmers: Understanding 64-Bit Processors and EPIC Principles now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.