User Tools

Site Tools


opus:spring2012:jdavis34:cprogpart2

cprog Keywords

Scope

Identification and definition of the chosen keyword.

If you wish to aid your definition with a code sample, you can do so by using a wiki code block, an example follows:

/*
 * Sample code block
 */
#include <stdio.h>
 
int main()
{
    return(0);
}

Compiler

program or interface which translates code into a machine language. Usually outputting an executable program such as we use via putty terminal.

Source Code

listing of commands, in a text based language, that are more user friendly than machine language, to be compiled or assembled into an executable computer program.

Binary Code

A form of code using 0's and 1's. More commonly associated with low level programming such as machine language, that most programmers don't work with but a library of language a compiler may use.

Flags

In programming, a flag is a predefined bit or bit sequence that holds a binary value. Typically, a program uses a flag to remember something or to leave a sign for another program.

For example, in a message being exchanged by two programs, a three-bit flag's field or data area might be set to one of three configurations:

001 (meaning “I'm a self-contained message”)

011 (meaning “I'm one of several chunks of data in this message”)

111 (meaning “I'm the last chunk of data in this message”)

Preprocessor

Separate program invoked by the compiler as the first part of translation.

The preprocessor handles directives for source file inclusion (#include), macro definitions (#define), and conditional inclusion (#if).

#include <stdio.h>
 
int main(void)
{
    printf("Hello, world!\n");
    return 0;
}

The preprocessor replaces the line #include <stdio.h> with the system header file of that name, which declares the printf()

assembler

An assembler is a program that takes basic computer instructions and converts them into a pattern of bits that the computer's processor can use to perform its basic operations. Some people call these instructions assembler language and others use the term assembly language.

Pointers

they “point” to locations in memory. In the computer, pointers are just variables that store memory addresses, usually the addresses of other variables. <codec> <variable_type> *<name>; one pointer, one regular int int *pointer1, nonpointer1; two pointers int *pointer1, *pointer2; </code>

cprog Objective

Objective

understand the difference between procedural and object-oriented languages

Method

To understand the difference between the two, it would probably be easiest to have someone create a program that best depicts both types of writing.

Measurement

Object Orientation Languages (OOL) is concerned to develop an application based on real time while

Procedural Programing Languages (PPL) are more concerned with the processing of procedures and functions.

OOL concepts includes Inheritance, Encapsulation and Data Abstraction, Late Binding, Polymorphism, Multithreading, and Message Passing while PPL is simply a programming in a traditional way of calling functions and returning values.

Analysis

Reflect upon your results of the measurement to ascertain your achievement of the particular course objective.

  • How did you do? Still somewhat confused on what exactly both entail, I guess picking this for my objective made me more curious to understand both of them a little better.
  • Room for improvement? ALOT for me in the terms of using both and knowing when and why i would want to.
  • Could the measurement process be enhanced to be more effective?
  • Do you think this enhancement would be efficient to employ?
  • Could the course objective be altered to be more applicable? How would you alter it?
opus/spring2012/jdavis34/cprogpart2.txt · Last modified: 2012/03/06 10:13 by jdavis34