This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Steps involved in conversion of C file to Hex file

Hi.. Can any one tell me steps involved while the c file is converted to hex file. i.e what all files(e.g.object files,list files,loader,linker) comes into existance.?

Parents
  • Conceptually (sometimes literally), the translation is in two steps:

    1. Source files -> preprocessor -> preprocessed source files;

    2. preprocessed source files -> compiler -> object files + list files (optional)

    It is important to understand this; in particular to understand that the "compiler" itself never sees the parts of the original sources that are replaced by the "preprocessor".

    Most tools have an option to retain the "preprocessed" source files - which can be useful for debugging preprocessor problems:

    www.8052.com/.../read.phtml

Reply
  • Conceptually (sometimes literally), the translation is in two steps:

    1. Source files -> preprocessor -> preprocessed source files;

    2. preprocessed source files -> compiler -> object files + list files (optional)

    It is important to understand this; in particular to understand that the "compiler" itself never sees the parts of the original sources that are replaced by the "preprocessor".

    Most tools have an option to retain the "preprocessed" source files - which can be useful for debugging preprocessor problems:

    www.8052.com/.../read.phtml

Children
No data