Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
How is source code different from object code?
Home
C Plus Plus
How is source code different from object code?
asked
Jan 12
in
C Plus Plus
by
GeorgeBell
How is source code different from object code?
c-interview-questions-answers
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Jan 12
by
GeorgeBell
Source Code
Object Code
Source code is generated by the programmer.
object code is generated by a compiler or another translator.
High-level code which is human-understandable.
Low-level code is not human-understandable.
Source code can be easily modified and contains less number of statements than object code.
Object code cannot be modified and contains more statements than source code.
Source code can be changed over time and is not system specific.
Object code can be modified and is system specific.
Source code is less close to the machine and is input to the compiler or any other translator.
Source code is more close to the machine and is the output of the compiler or any other translator.
Language translators like compilers, assemblers, and interpreters are used to translate source code to object code.
Object code is machine code so it does not require any translation.
...