• Congratulations to the Class of 2024 on your results!
    Let us know how you went here
    Got a question about your uni preferences? Ask us here

The different kind of 'code' HELP! (1 Viewer)

schlep16

Member
Joined
Nov 17, 2009
Messages
37
Gender
Undisclosed
HSC
2013
I know there is Object code, machine code, source code, compiled code, decompiled code...
what are the other types of code and what are there definitions?
(along with machine, object, source, compiled code, decompiled code)
Cheers
 
Last edited:

hjed

Member
Joined
Nov 10, 2011
Messages
211
Gender
Undisclosed
HSC
2013
I'm pretty sure all you need to know is that compiled code is the same as machine code, and for the purpose of the SDD so is object code. Machine code is the binary instructions understood by the CPU.
Decompiled code will either be assembler or source code, and source code is code written in a High level language.
 

schlep16

Member
Joined
Nov 17, 2009
Messages
37
Gender
Undisclosed
HSC
2013
If someone could give me a definition in terms of SDD HSC course, the differences, an example for the following. I would be forever grateful:
(remember i did post all that shit about error checking techniques)
-Compiled code
-Object code
-Decompiled code
-Machine code
-Source code
-Reverse engineering
-Imperative code
-Declarative code
-Uncompiled code
-Decompilation
-Compilation
-Programming languages
-Assembler code
 

hjed

Member
Joined
Nov 10, 2011
Messages
211
Gender
Undisclosed
HSC
2013
If someone could give me a definition in terms of SDD HSC course, the differences, an example for the following. I would be forever grateful:
(remember i did post all that shit about error checking techniques)
-Compiled code
-Object code
-Decompiled code
-Machine code
-Source code
-Reverse engineering
-Imperative code
-Declarative code
-Uncompiled code
-Decompilation
-Compilation
-Programming languages
-Assembler code
Compiled Code, Machine Code, Object Code (there all synonyms and they are all exactly the same :) ) - binary instructions that can be executed by the CPU. They can not be ported to different platforms

Decompiled Code - Code that was machine code and has now been converted back into assembler or a high level language. (ie. human readable code). Decompiled code is usually formatted badly and harder to read then original source code. It doesn't contain comments.

Source Code - Code in a high level language (such as Java or C) which can be easily read by a human. This is what developers write

Reverse Engineering - Working out what machine code does. This could be done by determining its algorithm or decompiling, but decompiling is not the only way to reverse engineer so make sure that you don't only mention that if you get asked about reverse engineering

Not sure about Imperative or declarative code, in the syllabus is says imperative languages are 3rd Gen languages. Perhaps someone else can post this.

Uncompiled code - Not sure where you got this from I never seen this one before, but it seems to be a misspelling of decompiled

Decompilation - the process of converting machine code into source code or assembler code.

Compilation - The process of converting source code to machine code, in one go. It has three stages: lexical analysis, syntactical analysis, and code generation. There is also an optional fourth step linking, which connects different files of machine code. Compilation creates machine code files that can then be distributed. You should be aware that interpretation is the same thing, but done line by line at runtime.
The order of compilation is lexical -> syntactical -> code generation.

Lexical Analysis - looks at every character and ensures it is a valid language elements. It creates a symbol table of variables and instructions. It removes comments. It allocates memory

Syntactical Analysis - checks the grammer of the high level language (think of it as using ebnf diagrams to check a statement). It generates the parse tree.

Code generation - converts the parse tree into machine code

Programming languages - languages that use sentences or phrases to describe a task performed by a computer.

Assembler Code - a lower level of language which uses mnemonics to represent each individual machine code instruction. It is harder to read then programming languages but allows for greater control.
 

hjed

Member
Joined
Nov 10, 2011
Messages
211
Gender
Undisclosed
HSC
2013
I should add the Object code is not actual machine code, it is a special code that contains instructions understood by a VM. You don't need to know this for SDD though
 

schlep16

Member
Joined
Nov 17, 2009
Messages
37
Gender
Undisclosed
HSC
2013
Well thank you Hjed. ye im pretty sure uncompiled code doesn't exist.
That was very handy, thank u dude!!!
Object code is the code understood by the computer once its been compiled.....(no google thats what my brain thinks)
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Top