Discussion Forum

Steps involved in conversion of C file to Hex file

Next Thread | Thread List | Previous Thread Start a Thread | Settings

DetailsMessage
Read-Only
Author
Mahesh Dhareshwar
Posted
9-Apr-2009 07:47 GMT
Toolset
None
New! 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.?

Read-Only
Author
Christoph Franck
Posted
9-Apr-2009 07:51 GMT
Toolset
None
New! RE: Steps involved in conversion of C file to Hex file

Source files -> compiler -> object files

Object files + libraries -> linker -> Binary executable + list files (optional)

Binary executable -> Binary-to-hex conversion tool -> hex file

Read-Only
Author
Andy Neil
Posted
9-Apr-2009 10:11 GMT
Toolset
None
New! Source files -> compiler -> object files

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:

http://www.8052.com/forum/read.phtml?id=29152

Read-Only
Author
Mahesh Dhareshwar
Posted
13-Apr-2009 05:51 GMT
Toolset
None
New! RE: Steps involved in conversion of C file to Hex file

Thank you very much for the clear concept..
If you could, please mention what is the function of LOADER.

Read-Only
Author
Andrew Neil
Posted
13-Apr-2009 11:55 GMT
Toolset
None
New! What you really need...

... is a computer science textbook and/or dictionary.

You could also try: http://www.wikipedia.org
and many like it...

Read-Only
Author
Andy Neil
Posted
9-Apr-2009 10:12 GMT
Toolset
None
New! Look at the pretty picture

http://www.keil.com/c51/devproc.asp

Next Thread | Thread List | Previous Thread Start a Thread | Settings