C/!Expanded Source Code
Expert: Narendra - 4/2/2007
QuestionHello Mr. Narendera,
I would like to ask the following:
Q1. What is the exact sequence of execution of a program in c Language?
I mean, what all processes take place before execution?
Q2. I'd like to know about memory models (i.e. small, compact, huge). What is their significance and how one can define memory model for its own programme?
Q3. How can I view expanded source code of a C Language program?
With regards,
Himanshu
AnswerQ1. What is the exact sequence of execution of a program in c Language?
I mean, what all processes take place before execution?
Ans> This is not related to the programming language.
Instead it is dependent on the platform you are working and each platform will have its own way of doing things.
Q2. I'd like to know about memory models (i.e. small, compact, huge). What is their significance and how one can define memory model for its own programme?
I don't think you have that liberty.
Q3. How can I view expanded source code of a C Language program?
On a Solaris or Linux box, you can use 'gcc -E prog.c' to get the expanded (after PREPROCESSOR run) C code.