The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.
i) Compare the operation of the compiler with that of an interpreter
i) Identify and justify a situation where a compiler might be preferred to an interpreter
i)Identify and justify a situation where a interpreter might be preferred to an compiler
i)Is source code where something is read from and object code part of the code that tells you what to do to a certain 'thing'. If not, what are Source and Object codes
My computing teacher spends more time harassing year nines and drinking coffee than he does teaching us so I need some help please, Ic, Ali, Blue Eagle, anyone?
[S]Posted this in General too but I know some of the top brass dont venture there often.
Source code is what you write, and then feed into an interpreter or a compiler.
Object code is what the computer understands and executes, i.e. its what the interpreter or compiler generates from your source code.
Created it in Access and it's sweeeet.
My programming teacher sucks
> i) Can you tell me the difference between a Compiler and an
> Interpreter language
"Compiled" code is basically code that is "processed" into a binary executable, which then can be run/executed whenever you want to use it.
An interpreter language is where the code is "executed" line by line, it interprets and process's each line of code and runs it.
> and why it might be an advantage to translate a
> programme using a compiler rather than a interpreter?
Advantages of a compiler: -
• Once compiled, the program can be ran as much as you want, it doesn't need to be "re-compiled" each time you execute it.
• Any errors can be found in the program during compilation, i.e you don't have to wait until you run the code to find the error.
Advantages of an interpreter: -
• Much faster to run, you can run the program without having to wait until its finished compiling the whole source. It reads each line then "interprets" it
Disadvantages of an interpreter: -
• You won't encounter errors until that line of code is executed. Meaning you could miss out on unfixed bugs in your program.
• By reading it line by line, each time you run the code, it's being "line-compiled" every time.
i) Compare the operation of the compiler with that of an interpreter
Compiler: -
• Compiles code into a binary executable, checks for errors
Interpreter: -
• Executes code line by line.
i) Identify and justify a situation where a compiler might be
preferred to an interpreter
When compiling an operating system, you want to find the error straight away without having to mess around with "looking" for the error. I.e the compiler will throw an error when it encounters one during compilation.
i)Identify and justify a situation where a interpreter might be
preferred to an compiler
When compiling small programs for debugging, especially useful when you are looking for bugs in programs, I.e when you execute a certain command, you want to see if it runs smoothly.
I'm not sure about your last question, we haven't done that yet.
You doing Tods Tyres?
i) Compare the operation of the compiler with that of an interpreter
i) Identify and justify a situation where a compiler might be preferred to an interpreter
i)Identify and justify a situation where a interpreter might be preferred to an compiler
i)Is source code where something is read from and object code part of the code that tells you what to do to a certain 'thing'. If not, what are Source and Object codes
My computing teacher spends more time harassing year nines and drinking coffee than he does teaching us so I need some help please, Ic, Ali, Blue Eagle, anyone?
[S]Posted this in General too but I know some of the top brass dont venture there often.