WED DEC 14
• final is Fri Dec 16, 11:30 am, OS415
• final is open-book, open-notes
• see final dir for 3 images of whiteboard
• info on Palm mem mgr pdf uname & passwd are our 5-digit course #

WED DEC 7
• reference string, distance string, Belady's anomoly, analysis of FIFO stack algorithms
assignment 10: Palm database + exercises html
DUE WED DEC 14

MON DEC 5
paging algorithms: optimal, FIFO, 2nd chance, clock, NFU, aging, working set, w.s. clock
theory: locality, pre-paging, reference string

FRI DEC 2
assignment 9: page tables pdf
due Dec 5

FRI NOV 18
• Palm OS memmgr handout; handle-based mem alloc'n
• buddy system details – see Wikipedia link
• use binary tree to implement the buddy mgr!

WED NOV 16
assignment 8: memory manager pdf
due Wed Nov 28
• first-fit, best-fit, data structures for asn 8

MON NOV 14
• Quiz 2 on Nov 30, will cover Asn 1 – 7
• rest of semester: memory management (alloc & virtual memory), file systems (Unix F/S & Palm D/B)
• asn 7: normal and bursty fcns modified over weekend
• today: malloc, first fit, best fit, worst fit, intro to handles

WED NOV 9
asn 7 updated; went over asn7 code

TUE NOV 8
assignment 7: sleeping barber html
due Wed Nov 16

MON NOV 7
quiz returned, threads discussion

FRI NOV 4
IPC problems: dining philo, sleeping barber

WED NOV 2
monitors and message passing

FRI OCT 28
assignment 6: Donut Factory (full) pdf due Mon Nov 7
ASN 5 CUT-OFF WED NOV 2

WED OCT 19
assignment 5: Donut Factory Prep pdf due Wed Oct 26
ASN 3 CUT-OFF FRI OCT 21

WED OCT 12
quiz 1: M Oct 24
quiz 2: W Nov 30

MON OCT 3
assignment 4: OSP CPU scheduler pdf due Wed Oct 12

MON SEP 26
assignment 3: Palm OS performance html due Fri Sep 30

FRI SEP 23
lecture 8 notes txt
resource IDs; adding to Hello2 app

MON SEP 19
lecture 6 notes txt
intro to Palm OS dev
assignment 2: intro to Palm OS dev html due Fri Sep 23

FRI SEP 16
lecture 5 notes txt
intro to Palm OS
Zen of Palm pdf

WED SEP 14
lecture 4 notes txt
signals

MON SEP 12
lecture 3 notes txt
exec and unnamed pipe

FRI SEP 9
lecture 2 notes txt
assignment 1: processes, pipes, signal handers pdf due Fri Sep 16

To format for printing, click here.

resources palm OS Yahoo! Group assn cover helpful links

91.308 Assignment 2:
Intro to Palm OS Programming

out: Mon Sep 19
due: Fri Sep 23

 

In this assignment, you will get a PC set up to do Palm development, build a “Hello World” Palm application, and run it using a Palm emulator.

It will be best if you have your own machine to do this assignment. If not, machines in the Engaging Computing lab (OS306) are available. Please contact me if you wish access to the lab.

  1. Choose your development tools. I personally prefer command-line tools. For Palm, this is a port of gcc called PRC-Tools.

    The other option is the Palm OS Developer Suite (PODS), which is based on the open-source Eclipse IDE (from IBM) and the gcc/PRC-Tools package. The OS306 machines will have this installed.

    Note: PODS can not co-exist with a prior installation of Cygwin—it installs its own Cygwin, and it requires that you remove any existing one first. If you have Cygwin already on your PC, your options are (a) remove it and install PODS, or (b) ignore PODS and use the command-line PRC-Tools.

    See the course Palm OS resources page for download links.

  2. Read the excerpt from the Lonnon Foster book that was handed out in class. This explains how to use the PODS software, and introduces two HelloWorld sample applications.

  3. Compile/build Lonnon Foster's HelloWorld2 Palm application. Get it running on either a Palm emulator or a physical device.

    If you are using the GUI PODS environment, you need to create a new "managed make 68K C/C++" project, and then add the following files. Into your project, install these files from the gcc sub-directory of the Foster sample code:

    • Using File->Import->File System, get helloMain.c and helloRsc.h.
    • Using File->Import->Palm OS Resources, import from hello2.prc

    At this point, you should be able to build your application. It will build a .prc file in the Debug directory. Find this file on your hard drive and load it into the Palm emulator (right-click and choose Install Database).

  4. Change the application's creator code to some other 4-character value (not all lower-case, since those combinations are reserved by Palm).

  5. Now, extend it. Implement at least two new features. Choose from the following list, or invent something else of your own:

    • Split the name field into two fields (one for first name, one for last name), and have the “Say Hello” and “Say Goodbye” forms concatenate the two names.

    • Add a third alert, button, and message (e.g., “Hey There”).

    • Add a new icon to the existing About Hello World 2 form.

    • Create a second About-this-application form, and add it to the Options menu.

    • Add a slider or other UI widget to the main screen, and have it do something when activated.

  6. Turn in your work by (a) zip or tar your source and your .prc application file into a single archive and put it in a reachable location on your CS account, (b) submit a hard copy cover sheet that gives a directory pointer to your work and explains in some detail what you did, (c) include a screen snapshot showing your application running on the Palm emulator, and (d) on your write-up, indicate the 4-character value you chose for your application.

Last modified: Friday, 23-Sep-2005 12:05:37 EDT by fred_martin@uml.edu