Day#65 'C' Coding Challenge

Day#65 'C' Coding Challenge

What is the difference between source code and object code?

Any code which we write in high level language (for example the C code) is called a source code. When we say high level language it shall be in human readable format. A compiler converts the source code into an object code. The object file even though is a binary format cannot be executed directly. These object files shall be in Executable and Linkable Format (ELF).

In embedded coding, we shall have several files in high level language like C. Each file shall be converted to object code by compiler. These individual object files shall be combined to form a single executable file by linker. 

Source files shall have statements, declarations, definitions.

Object files shall have:

  • text section
  • data section
  • bss section
  • symbol table

Post a Comment

0 Comments