A few technical definitions.

Discussion in 'QnA (read only)' started by geekgod, Aug 18, 2004.

Thread Status:
Not open for further replies.
  1. geekgod

    geekgod New Member

    Joined:
    Aug 18, 2004
    Messages:
    101
    Likes Received:
    0
    Trophy Points:
    0
    Hi,
    i need STRICTLY TECHNICAL definitions for the following items.(these are for my teachers. for me plzzzzzzz include explanations with them)
    1.Compiler 2.Assembler 3.Semantic and Lexical analysis 4.Code generation and analysis 5.Assembly Language set
    In case u are wondering, i missed 5 classes of my comp archi and i found these names in the syllabus book. Nobody has written anything, everybody is happy with listening, and i am stuck :(
     
  2. busyanuj

    busyanuj Member

    Joined:
    Dec 15, 2003
    Messages:
    488
    Likes Received:
    3
    Trophy Points:
    18
    A system program that translates a program written in a high-level programming language to a machine language program is known as compiler.

    The compiler may use an assembly language as an intermediate step in the translation or may translate the program directly to binary.
     
  3. busyanuj

    busyanuj Member

    Joined:
    Dec 15, 2003
    Messages:
    488
    Likes Received:
    3
    Trophy Points:
    18
    The translation of a symbolic program into binary is done by a special program called assembler.

    Basically, it is a program that accepts a symbolic language program (that we type) and produces its binary machine language equivalent. The inputted symbolic program is called the source program and the resulting binary program is called the object program.
    The assembler is a program that operates on character strings and produces an equivalent binary interpretation.
     
  4. sreevirus

    sreevirus Certified Nutz

    Joined:
    Jan 11, 2004
    Messages:
    310
    Likes Received:
    1
    Trophy Points:
    0
    Location:
    The 3rd rock from the sun
    1. Compiler: [Computer Science] A program that translates another program written in a high-level language into machine language so that it can be executed.

    2. Assembler: [Computer Science] A program that produces executable machine code from symbolic assembly language.
    (source:dictionary.com)

    3. Semantic: (i)Of or relating to meaning, especially meaning in language. (dictionary.com). (ii) [comp.sci] The meaning attached to words or symbols (wordsworth dict. of sci and technology)
    Semantic analysis: In computer science, semantic analysis is a pass by a compiler that adds semantical information to the parse tree and performs certain checks based on this information. It follows the parsing phase, in which the parse tree is generated, and precedes the code generation phase, in which executable code is generated. Typical examples of semantical information that is added and checked is typing information (type checking) and the binding of variables and function names to their definitions (object binding). Sometimes also some early code optimization is done in this phase.
    (src: Wikipedia)

    4. Lexical: Of or relating to the vocabulary, words, or morphemes of a language (dictionary.com)
    Lexical analysis: (Or "linear analysis", "scanning") The first stage of processing a language. The stream of characters making up the source program or other input is read one at a time and grouped into lexemes (or "tokens") - word-like pieces such as keywords, identifiers, literals and punctutation. The lexemes are then passed to the parser.
    (hyperdictionary.com)

    5. Code Generation: the generation/production of the symbolic arrangement of data or instructions in a computer program or the set of such instructions.

    sorry, wasnt able to find anything on 'assembly language set'.
     
  5. busyanuj

    busyanuj Member

    Joined:
    Dec 15, 2003
    Messages:
    488
    Likes Received:
    3
    Trophy Points:
    18
    Assembly language set: A programming language is defined by a set of rules. Users must conform with all format rules of the language if the want their programs to be translated correctly. Almost every commercial computer has its own particular assembly language. The rules for writing assembly language programs are documented and published in manuals which are usually available from the computer manufacturer.

    The basic unit of an assembly language program is a line of code. The specific language is defined by a set of rules that specify the symbols that can be used and how they may be conbined to form a line of code.
     
  6. OP
    OP
    geekgod

    geekgod New Member

    Joined:
    Aug 18, 2004
    Messages:
    101
    Likes Received:
    0
    Trophy Points:
    0
    :shock: oye sree, these are good enough for my teacher, but for me it was all tangent. :roll: can you include explanations for terms like parsing and others :oops:
     
  7. busyanuj

    busyanuj Member

    Joined:
    Dec 15, 2003
    Messages:
    488
    Likes Received:
    3
    Trophy Points:
    18
    Parsing is dividing the code into parts.
     
  8. sreevirus

    sreevirus Certified Nutz

    Joined:
    Jan 11, 2004
    Messages:
    310
    Likes Received:
    1
    Trophy Points:
    0
    Location:
    The 3rd rock from the sun
  9. lywyre

    lywyre Active Member

    Joined:
    Aug 18, 2004
    Messages:
    1,217
    Likes Received:
    4
    Trophy Points:
    38
    Location:
    Chennai/Vellore, TN
    Google is good. It is better when u know how to use it.

    Try this in the google search bar:

    define: compiler

    U sure will get a lot of answers, but most will be closer to your query.

    Also try www.howstuffworks.com
     
  10. only_junk

    only_junk New Member

    Joined:
    Aug 13, 2004
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    dehradun
    nice info dudes, u all deserve my compliment for helping a new kid
     
  11. OP
    OP
    geekgod

    geekgod New Member

    Joined:
    Aug 18, 2004
    Messages:
    101
    Likes Received:
    0
    Trophy Points:
    0
    thnx a lot guys. this forum really rocks. CHEERS!!!
     
Thread Status:
Not open for further replies.

Share This Page