Skip to main content

Buffer in the .data Section

Navigate to the drills/tasks/data-buffer/support/ directory in the laboratory's resource archive and open the data_buffer.asm file. This file contains a program that populates a buffer with information and then displays it.

Carefully review the program, then compile it using the command:

make

Notice that after running the above compilation command, both an object file and an executable file are generated. You can verify this by running the command:

ls

Run the program using the executable file, using the command:

./data_buffer

Observe the behavior of the program based on its code.