Question

Discuss in details how software (OS, editor, compiler, system library etc.) and computer hardware (CPU, memory,...

Discuss in details how software (OS, editor, compiler, system library etc.) and computer hardware (CPU, memory, I/O devices and so on) interact when you create a new C program, and finally make an executable program and run it.

Homework Answers

Answer #1

When the code in C is written using an editor, the code is first checked by the compiler and converted to a form close to machine language. Usually it is in the form of 0s and 1s.

The 0s and 1s are digital voltage given to the chip transistors. This voltage is used to run the hardware. The circuitry in the chip is connected by the voltage and operation of the program is performed.

Temporary data is stored inside the RAM and permanent data is stored on the disk.

An executable program in C to multiply two numbers:

#include<stdio.h> //header file

int main() //main function which returns value after finishing execution

{

int a,b,c; //3 integer variables are declared

scanf(%d %d", &a,&b); //run time value from the user is taken

c=a*b; //multiplying two integers using multiplication operator

printf("result is:",c); //result of multiplication is printed

return 0;

}

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
In a general purpose computer system the CPU, the main memory and the cache may be...
In a general purpose computer system the CPU, the main memory and the cache may be interconnected via one or more shared system bus(es). However, the secondary storage units (eg. Hard disk) will only be connected to the system bus through an I/O controller. The following are three statements regarding the requirement for an I/O controller (i) The response times of I/O devices are very much slower than that of main memory and hence direct interfacing is impossible. (ii) It...
Read Lab2 System Software, then answer the following questions. For answering the questions, you may use...
Read Lab2 System Software, then answer the following questions. For answering the questions, you may use any resource including the lab exercise, the textbook, or the internet. Do we still need to use Terminal? If so, for what? Suppose you are using Terminaland are currently in the Desktopfolder. Write the command to create a folder called: myname Suppose you are using Terminal. Write the Terminalcommand to display the contents of folder myname Suppose you are using Terminal. Write the Terminalcommand...
Introduction Purpose Your goal is to create a design for a software interface. You will experience...
Introduction Purpose Your goal is to create a design for a software interface. You will experience the scope of the design process from brainstorming ideas and gathering information about users’ needs to storyboarding, prototyping, and finally, testing and refining your product. As you work on the software interface, you will demonstrate your ability to apply fundamental Human-Computer Interaction principles to interface analysis, design, and implementation. You will be responsible for delivering project components to your professor at several points during...
Which architectural pattern is most appropriate for the following multi-user, web-based system for providing a film...
Which architectural pattern is most appropriate for the following multi-user, web-based system for providing a film and photograph library?(1 Point) Please read textbook Chapter 6.3 Architectural Patterns MVC Pattern which separates presentation and interaction from the system data Layered architecture which organizes the system into layers, with related functionality associated with each layer Repository architecture - all data in a system is managed in a central repository that is accessible to all system components. Components do not interact directly, only...
You have recently been hired by a new Japanese accounting firm, headquarter in Tokyo, as the...
You have recently been hired by a new Japanese accounting firm, headquarter in Tokyo, as the director of Information Systems and Telecommunications. Your assignment is to assist security posture of the firm and develop a security structure for this new company. Write your recommendations and reasons to the firm’s CEO. The firm has 600 employees in Tokyo, 50 in Houston, and is planning to open two branch offices in India and California. Ten accountants will be hired at each site....
I did already posted this question before, I did get the answer but i am not...
I did already posted this question before, I did get the answer but i am not satisfied with the answer i did the code as a solution not the description as my solution, so i am reposting this question again. Please send me the code as my solution not the description In this project, build a simple Unix shell. The shell is the heart of the command-line interface, and thus is central to the Unix/C programming environment. Mastering use of...
QUESTION 1 Which of the following best exemplifies offshoring? A. A U.S. company employs foreign nationals...
QUESTION 1 Which of the following best exemplifies offshoring? A. A U.S. company employs foreign nationals at its U.S. based headquarters. B. A U.S. company translates novels originally written in foreign languages into English for distribution in the U.S. market. C. A U.S. company starts a chain of fusion restaurants to cater to the American public’s evolving palates. D. A U.S. company purchases footwear made in Europe to distribute to retailers in the United States. E. A U.S. company that...
Question -Organizational change goes beyond promotions and the threat of layoffs. What ways other than those...
Question -Organizational change goes beyond promotions and the threat of layoffs. What ways other than those discussed in the case would you use to entice people to embrace proposed changes? Provide several suggestions and justify their rationale. CASE STUDY- Blue Cross and Blue Shield, and Others: Understanding the Science behind Change Kevin Sparks has been trying to get his staff to change the way it monitors and supports the data center for the past year, but he hasn’t been getting...
GoodClothes and MIS: Case from struggle to revamp Headquartered in Dubai, GoodClothes is a highly successful...
GoodClothes and MIS: Case from struggle to revamp Headquartered in Dubai, GoodClothes is a highly successful department retailer offering completely designed casual clothing and accessories. The company operates 10 stores in all seven emirates and 1 store in Al Ain. The company owns 6 stores and franchises 5. For some time, marketing managers targeted population between the ages 40 and 60 who like loose, comfortable clothes. Then, management was tempted to stock its stores with clothes for a younger population...
Using the model proposed by Lafley and Charan, analyze how Apigee was able to drive innovation....
Using the model proposed by Lafley and Charan, analyze how Apigee was able to drive innovation. case:    W17400 APIGEE: PEOPLE MANAGEMENT PRACTICES AND THE CHALLENGE OF GROWTH Ranjeet Nambudiri, S. Ramnarayan, and Catherine Xavier wrote this case solely to provide material for class discussion. The authors do not intend to illustrate either effective or ineffective handling of a managerial situation. The authors may have disguised certain names and other identifying information to protect confidentiality. This publication may not be...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT