fregu856 / c

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

C

  • To get SimpleOS to work:
    • $ sudo apt-get install lib32ncurses5 lib32z1
    • $ cd simple_os_2013_03_05/simple_os_apps/barber/gui
    • $ ./prog_x86_host
    • $ cd simple_os_2013_03_05/java_gui/java
    • $ java GUISimpleOS

Assignment 1:

  • Compile and execute the program set_clock:

    • $ cd ~/c/assignment1
    • $ make set_clock
  • Run set_clock:

    • $ cd simple_os_2013_03_05/java_gui/java
    • $ java GUISimpleOS
    • $ ./set_clock (in ~/c/assignment1)
  • Compile and execute the program odd_even:

    • $ cd ~/c/assignment1
    • $ make odd_even
  • Run odd_even:

    • $ cd simple_os_2013_03_05/java_gui/java
    • $ java GUISimpleOS
    • $ ./odd_even (in ~/c/assignment1)
    • With the original code, the error message is displayed almost every time
    • After inserting the long_calculation() call, the error message is displayed every single time
    • In increment_number(), does long_calculation() really have to be called where it's currently called? Feels unnecessary to lock the common variables for such a long time.

Assignment 2:

  • Compile and execute the program set_clock:
    • $ cd ~/c/assignment2
    • $ make set_clock
  • Run set_clock:
    • $ cd ~/simple_os_2013_03_05/java_gui/java
    • $ java GUISimpleOS
    • $ ./set_clock (in ~/c/assignment2)

Assignment 3:

  • Place the images in assignment3 in ~/simple_os_2013_03_05/java_gui/images

  • Compile and execute the program lift_pthreads:

    • $ cd ~/c/assignment3
    • $ make lift_pthreads
  • Run lift_pthreads:

    • $ cd ~/simple_os_2013_03_05/java_gui/java
    • $ java GUISimpleOS
    • $ ./lift_pthreads (in ~/c/assignment3)

Assignment 4:

  • Compile and execute the program lift_messages:

    • $ cd ~/c/assignment4
    • $ make lift_messages
  • Run lift_messages:

    • $ cd ~/simple_os_2013_03_05/java_gui/java
    • $ java GUISimpleOS
    • $ ./lift_messages (in ~/c/assignment4)

Assignment 5:

  • Compile the original program for assignment 3:

    • $ cd ~/c/assignment5
    • $ make 3
  • Compile the optimized program with GUI for assignment 3:

    • $ cd ~/c/assignment5
    • $ make 3_opt
  • Compile the modified, unoptimized program for assignment 3:

    • $ cd ~/c/assignment5
    • $ make 3_mod
  • Compile the modified, optimized program for assignment 3:

    • $ cd ~/c/assignment5
    • $ make 3_mod_opt

About


Languages

Language:C 83.9%Language:Java 4.4%Language:Makefile 3.6%Language:HTML 2.8%Language:Assembly 2.1%Language:C++ 1.6%Language:Python 1.5%Language:MATLAB 0.1%Language:Batchfile 0.0%Language:Shell 0.0%