Question: Problem 5.20 Upload your file here using Insert-Document above Paste your code here Edit View Insert. Format Tools Table 12pt Paragraph V BIU 2

Problem 5.20 Upload your file here using Insert-Document above Paste your code here Edit View Insert. Format FIGURE 5.20 The action of a compiler on the program in Figure 5.19. Processing #include int main () { } Input FIGURE 5.19 The printf () function at Level HOL6 and Level Asmb5. High-Order Language #include int main() { }

Problem 5.20 Upload your file here using Insert-Document above Paste your code here Edit View Insert. Format Tools Table 12pt Paragraph V BIU 2 T V V EV FIGURE 5.20 The action of a compiler on the program in Figure 5.19. Processing #include int main() { } Input printf("Hello, world! "); return 0; } (a) A compiler that translates directly into machine language. #include int main() { Compiler printf("Hello, world! "); return 0; Compiler (b) A compiler that translates into assembly language. Output 49 00 04 00 48 65 6C 6C 6F 2C 20 77 6F 72 6C 64 21 OA 00 ZZ msg, d STRO STOP msg: ASCII "Hello, world! \x00" END FIGURE 5.19 The printf() function at Level HOL6 and Level Asmb5. High-Order Language #include int main() { } printf("Hello, world! "); return 0; Assembly Language 0000 490004 0003 00 0004 48656C msg: 6C6F2C 20776F 726C64 210A00 0013 Output Hello, world! STRO STOP .ASCII "Hello, world! \x00" msg, d . END

Step by Step Solution

3.46 Rating (159 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Step 1 The answer will be b A compiler that translates into assembly language Now lets understand wh... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!