Preview

System Programming Chapter 2

Good Essays
Open Document
Open Document
567 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
System Programming Chapter 2
Tanisha Brinson
CPS 360
System Programming
Chapter 2 Questions

1. System Software on a Unix System perform the same basic services as System Software on a Microsoft Windows System. However, there are some fundamental differences in how the system software is designed and developed. Describe at least two differences.

• The code for MS Windows is proprietary and closed source, while the code for many Unix distributions (such as Linux) is free and open source. • MS Windows is a single, monolithic, integrated system, while Unix is modular, with users able to switch out pieces of the system. • MS Windows is designed to make operating a computer as easy as possible; many details of how the system operates are hidden from users. In a Unix system, all the details are easier to access, for study or for modification.

2. Briefly describe two operations that a debugger can perform (i.e., commands that you can give to a debugger? What two things does the compiler do to assist a debugger?

Answer:
Set a breakpoint to pause execution of the program at a given line number. It can also print the value of a variable during execution also run a single line of program code, pausing after it completes.

3. Why must a program specifically be compiled for debugging to be able to execute that program in a debugger? What two things does the compiler do to assist a debugger?

Answer:
The compiler adds a symbol table to the executable so that variable names from the source code can be understood. The compiler avoids optimizing operations so that lines of code in the executable can be related to the original lines of source code.

4. Describe two ways a text editor can assist with writing program code (as opposed to writing generic text using a word processor).

Answer:
The text editor emacs, the bracket matching feature can briefly move the cursor to the opening bracket every time a closing bracket is typed, animating the grouping. Some text editors

You May Also Find These Documents Helpful

  • Powerful Essays

    Nt1330 Unit 1 Study Guide

    • 2629 Words
    • 11 Pages

    a) Explain what is CPU scheduler? State FOUR (4) goals of the CPU scheduler in an operating system.…

    • 2629 Words
    • 11 Pages
    Powerful Essays
  • Satisfactory Essays

    Homework Week 2

    • 743 Words
    • 3 Pages

    2. What does a compiler do? What kinds of errors are reported by a compiler?…

    • 743 Words
    • 3 Pages
    Satisfactory Essays
  • Powerful Essays

    Nt1310 Unit 8 Study Guide

    • 546 Words
    • 3 Pages

    13. Writing a program in a language such as C++ or Java is known as _____ the program.…

    • 546 Words
    • 3 Pages
    Powerful Essays
  • Satisfactory Essays

    POS 420 Week 4 DQs

    • 549 Words
    • 4 Pages

    DQ 2: Describe the philosophical differences between Microsoft and Sun Microsystems as it relates to operating systems.…

    • 549 Words
    • 4 Pages
    Satisfactory Essays
  • Satisfactory Essays

    POS355 Week 1 Individual

    • 574 Words
    • 2 Pages

    Windows and Linux both have their differences some good and a few bad. Linux was developed collaboratively so no particular company is solely responsible for its creation or ongoing support. One of the differences between Windows and Linux is that with Linux users have access to the operators system’s (OS) code. But giving user’s access to the software code the users are able to change the software to better suit their needs and even change the way the memory is used on the operating system. Windows software does not allow the flexibility the Linux software has, this forces the user to conform to its fixed operating…

    • 574 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    pt1420 exam review

    • 738 Words
    • 3 Pages

    1 - Design the Program2 - Write the Code3 - Correct Syntax Errors4 - Test the Executable Code…

    • 738 Words
    • 3 Pages
    Good Essays
  • Better Essays

    BIS 320 Week 2 Asm

    • 1188 Words
    • 5 Pages

    Microsoft has been the world leader with respects to computer Operating Systems Software, and has increasingly become more efficient and precise with each release. Microsoft released their first version of the Windows Software (November 20th, 1985). This operating system was an anomaly at the time, and has progressed to the point that it is used worldwide on most computers in the world. All of the leading competitors have used Windows as a benchmark and have either copied its features or expanded upon them.…

    • 1188 Words
    • 5 Pages
    Better Essays
  • Better Essays

    7) Global variables make debugging difficult because any statement in a program can change its value.…

    • 1580 Words
    • 11 Pages
    Better Essays
  • Powerful Essays

    Microsoft presented a working situation named Windows on November 20, 1985 as a graphical working framework shell for MS-DOS in light of the developing enthusiasm for graphical UIs (GUI). Microsoft Windows came to command the world's PC showcase with more than 90% piece of the overall industry, surpassing Mac OS, which had been presented in 1984. (Bhardwaj, Arora & Malik, 2014, p.778).…

    • 1714 Words
    • 7 Pages
    Powerful Essays
  • Satisfactory Essays

    Cs Programming Chapter 1

    • 2450 Words
    • 10 Pages

    ____ data items may involve organizing or sorting them, checking them for accuracy, or performing calculations with them.…

    • 2450 Words
    • 10 Pages
    Satisfactory Essays
  • Good Essays

    Physics Midterm Exam

    • 958 Words
    • 4 Pages

    Correct answer: (d). The date of birth is not entered nor used in the program. It is irrelevant information.…

    • 958 Words
    • 4 Pages
    Good Essays
  • Good Essays

    Pos 421 Week 4 Assignment

    • 667 Words
    • 3 Pages

    There are many different versions of Windows operating systems and software. Each has a different ability or use as the technology for each was increased and or changed over time as each was used. Some of the major versions of Windows include: Windows Server 2003, Windows Server 2008, Windows 200, Windows XP, Windows Vista, and Windows 7. These versions all have some similarities as well as differences that make them separate from each other. The following paragraphs will lists some of the comparisons and contrasts that make each individually different.…

    • 667 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Week 1 Homework

    • 843 Words
    • 5 Pages

    2. What does a compiler do? What kinds of errors are reported by a compiler?…

    • 843 Words
    • 5 Pages
    Good Essays
  • Satisfactory Essays

    Unit 3 research

    • 481 Words
    • 2 Pages

    Someone doing reverse engineering on software may use several tools to disassemble a program. One tool is a hexadecimal dumper, which prints or displays the binary numbers of a program in hexadecimal format (which is easier to read than a binary format). By knowing the bit patterns that represent the processor instructions as well as the instruction lengths, the reverse engineer can identify certain portions of a program to see how they work. Another common tool is the disassembler. The disassembler reads the binary code and then displays each executable instruction in text form. A disassembler cannot tell the difference between an executable instruction and the data used by the program so a debugger is used, which allows the disassembler to avoid disassembling the data portions of a program. These tools might be used by a cracker to modify code…

    • 481 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Microsoft’s emergence as a software superpower was due to the unfolding of a unique set of circumstance and a combination of luck and skill. Since the early ‘80s, Microsoft’s has a good share of the market of personal computers operating systems but the rise of this company has been widely caused by an IBM’s wrong evaluation. In those years IBM was the world’s largest computer producer, but its managers decided to not invest money into development of personal computer technology because they thought that this sector would never been profitable, but only a niche market. When IBM’s managers realized that the market was growing very fast and the company was in danger to lose its leadership, they decided to base their personal computer on Intel microprocessor and Gary Kildall’s operating system, named CP/M, instead of developing their own. Kildall decided to not sign with IBM and their choice fell back on Bill Gates that bought an operating system based on CP/M and made it compatible with IBM’s machines, creating Microsoft DOS. Every IBM’s PC used this program, so MS DOS had a huge installed base, and the other companies who wanted to stay in the market could only develop a compatible software, also a lot of applications and complementary goods were developed for this platform and it generated a “virtuous circle” that made Microsoft the world’s fastest-growing software company. To be more functional for users and to fight against Apple, Microsoft decided to create a new graphical interface, named Windows and with that reached the leadership on personal computer operating system market and a large market share in many other software market such as word processor and presentation programs, influencing software and hardware industries thank also to its capabilities of encouraging…

    • 793 Words
    • 4 Pages
    Good Essays