Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: f your program Answer: dweller@dwellerpc:~$ gcc -g -O0 -Wall hello.c -o hello.o dweller@dwellerpc:~$ gdb hello.o GNU gdb (GDB) 7.0-ubuntu Copyright (C) 2009 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". For bug reporting instructions, please see: <>... Reading symbols from /home/dweller/hello.o...done. (gdb) run Starting program: /home/dweller/hello.o hello, 6.087 students Program exited normally. (gdb) quit dweller@dwellerpc:~$ 2 Problem 1.4 The following lines of code, when arranged in the proper sequence, output the simple message “All your base are belong to us.” 1. return 0; 2. const char msg = MSG1; 3. } 4. #define MSG1 "All your base are belong to us!" 5. int main(void) { 6. #...
View Full Document

This document was uploaded on 03/17/2014 for the course EECS 6.087 at MIT.

Ask a homework question - tutors are online