Question

In: Computer Science

To run as an executable an assembly program on a computing platform that includes an operating...

To run as an executable an assembly program on a computing platform that includes an operating system, you need to: A. Run through an assembler and linker B. Run through a compiler C. Run through an assembler D. Run through a compiler and linker E. Run through a compiler and assembler?

Solutions

Expert Solution

I)An assembly executable must be converted to machine code in order to be understood by computer so inorder to generate object code (. exe) we should compile the program then .exe generated.

II) In order to be executed by the system (such as an operating system, firmware, or boot loader),any of the above,

a file is executed by loading it into memory and jumping to the start of the address space and executing from there.

In more complicated interfaces, executable files have additional metadata specifying a separate entry point. For example, in ELF, the entry point is specified in the header's entry field, which specifies the (virtual) memory address at which to start execution. In the GCC (GNU Compiler Collection) this field is set by the linker based on the start symbol.

from the above point we can say that the file must go through linker.

Form I and II) option D. Compiler and linker. Is the answer.

Please do upvote thank you.


Related Solutions

Given the following code segment, tell the output if it is part of an executable program....
Given the following code segment, tell the output if it is part of an executable program. Assume the addresses of the variables, a and b, are 0012A32A and 0012A340, respectively.        int* intPtr1, *intPtr2;        int a = 10, b;        intPtr1 = &a;        cout<< "The data in a is "<<a<<endl;        cout << "The address of a is "<<&a<<endl;        cout <<"The data in intPtr1 is "<< intPtr1 <<endl;        cout <<"The data in the variable pointed by...
4. Translate the following C code to MIPS assembly (in two separate files). Run the program...
4. Translate the following C code to MIPS assembly (in two separate files). Run the program step by step and observe the order of instructions being executed and the value of $sp. int main() { int x=2; z=Subfunc(x); printf(“Value of z is: %d”, z); } int Subfunc(int x) { return x+1;} Submission file: Lab4_4a.asm and Lab4_4b.asm
Program for computing Unigram, Bigram, and Trigram Language Models. Program for computing the probability of sentence...
Program for computing Unigram, Bigram, and Trigram Language Models. Program for computing the probability of sentence using each of the Unigram, Bigram, and Trigram Language Models.
Describe two advantages of using dynamically linked libraries in assembling executable program files.
Describe two advantages of using dynamically linked libraries in assembling executable program files.
Describe two advantages of using dynamically linked libraries in assembling executable program files.
Describe two advantages of using dynamically linked libraries in assembling executable program files.
In your own words explain the difference between two types of cloud computing: Platform as a...
In your own words explain the difference between two types of cloud computing: Platform as a service (PaaS) and .Infrastructure as a service (IaaS). Give at least 2 examples of PaaS and 1 example of IaaS AWS solutions implemented by Zillow. Describe main features and benefits of each .
Marketing concept is to place your unique product on the global platform. This includes the availability...
Marketing concept is to place your unique product on the global platform. This includes the availability of goods and services to customers at affordable prices (Webster & Lusch, 2013). The entire product cycle, right from manufacturing to modifying it in accordance to the preferences of the majority consumers. My experience with marketing strategy is that there are wide variety of products available. As compared to earlier days when theme park meant only those in the western world now there are...
Professional Platform for Ethics and Leadership The role of the health care professional includes being a...
Professional Platform for Ethics and Leadership The role of the health care professional includes being a moral agent or a person whose actions affect themselves and others at a moral level. It is important to have a personal ethic or moral framework in which you ground your practice and professional relationships. Write on the above at least 500 words
Our idea is a platform that includes services to online shoppers who do not have visa...
Our idea is a platform that includes services to online shoppers who do not have visa we pay instead of them when they transfer money to us by transferring money through local bank also shoppers they have a problem in some websites that do not ship outside the United States we will provide addresses in America receive shipments and then ship them here. writhe the five competitive forces model for this idea :
Operating system How do I run a program about processces and IPC on linux can someone...
Operating system How do I run a program about processces and IPC on linux can someone show me an example and the step by step way of doing it. I have files tha were given and I need to run them. Thank you
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT