Skip to main content

Fundamentals of Computer Architecture

  • Our computer always responds to electricity
  • We choose binary number system (our power button)
    • Of/On (2 states)
    • 0: bit
    • 1: bit
    • Combination of 8 bits: byte 
      • ex. Megabyte
      • Byte: Unit of memory
  • Every symbol on the keyboard: character
    •  A; a to Z; z; all numbers...etc.
    • Each character is represented by a combination of bits (1 byte)
      • ex. 01000100
        • Based on code, alphabet shows up
  • Compiler
    • Translates the entire source code into binary
    • Takes in code
    • Points out errors
    • When it is correct, it converts the source code into machine language/binary code/binary language/object code
  •  Interpreter
    •  Translates line by line
      • Easier to find mistake in some situations
    • (Has same features as compiler)
  • Source Code (Java, C++) ---> Compiler/Interpreter ---> Object Code (binary: 01001111) 
    • "My source code is not compiling/interpreting"
  •  ______________________________________________________________
  • Systems programs that helps us to work with all of the resources of the machine: operating systems (ex. ios, windows) 
  • Application Program: ex. banking software works only in a bank: purpose that only works in a certain environment

Comments

Popular posts from this blog

Software Approach, Top Down Design

One way of coding is to simply have a rough idea of what you want to do and then start typing away to produce one huge source file. This is a very bad idea. The resulting code is likely to have many issues with it that include: Poorly documented code, so very hard to maintain and update 'Spaghetti Code' - which means a tangled mess of jumps and loops all over the code, very hard for someone to understand. Even by the originial coder a few days later! Duplication of code, so wasting memory and running speed Very hard to develop by more than one person as there is only one file Very hard to debug - the file either works of it doesn't

Systems Thinking

What comes to your mind when you hear the word, system? Gears and settings icon Small error can have a large impact and effect the outcome (different than expected) What is a system, and how does it work? A system is an orderly and efficient process where tasks are completed. A system works similarly to an assembly line.

Computer Architecture Diagram