Anda di halaman 1dari 1

NOTA

Kenalpasti definisi:
Debugger: A debugger is a software program used to test and find bugs (errors) in
other programs.
Debugging is the process of detecting and removing of existing and potential errors (also called as ‘bugs’) in
a software code that can cause it to behave unexpectedly or crash.

Compiler: Pengkompil adalah program perisian yang mengubah kod sumber peringkat
tinggi yang ditulis oleh pemaju dalam bahasa pengaturcaraan peringkat tinggi ke kod
objek tahap rendah (kod binari) dalam bahasa mesin, yang dapat difahami oleh
pemproses.
A compiler is a special program that translates a programming language's source
code into machine code, bytecode or another programming language. 
 translates the whole program into machine code before the program is run. 
program komputer yang digunakan untuk menukar arahan peringkat tinggi atau bahasa

ke dalam bentuk yang dapat difahami oleh komputer.

Interpreter:
translates code into machine code, instruction by instruction 
Menterjemah kod kepada kod mesin ikut arahan, menggunakan bahasa pengaturcaraan seperti
ruby, php, python dan sebagainya.

Bandingkan interpreter dan compiler:


Interpreter: do not generate IR code or save generated machine code, process the code
one statement at a time at runtime, without pre-converting the code or preparing it in
advance for a particular platform. 
Compiler terus tukar kod kepada kod mesin yang spesifik untuk target seni bina runtime.
I a juga terus menterjemah kod kepada mesin kod tanpa megikut arahan manakala
interpreter mengkompilkannya kepada perantara yang lari pada mana-mana seni bina. Ia
juga menterjemah kod mengikut arahan

Anda mungkin juga menyukai