
DONE 5/21/97: 1) _SL_ucfsizeof is just expanded  by preprocessor => make function in interface.c

DONE 5/20/97: 2) Sorting of variables must be done by ucfsizeof, not sizeof

3) Check of data representations during compilation of c2ftc (in particular ucf!)

4) Think about sorting of object stack: Sort object stack according 
   to shadow stack addresses!

5) Is setting the recovery chkpt_incid = 1 really the right thing to avoid
   doing update_objstack twice?

6) free dynamic memory

DONE 5/18/97: 7) store blocksize of dynamically allocated chunk only as index if 
   architecture UCF incompatible 

8) add to 7: memcopy heap objects if architecture UCF compatible

9) pointers to constant variables (in text segment)

10) checkpoint malloc mode and implement valloc, memalign, etc.

11) Can we get rid of structmetric_t field odim???

DONE 6/22/97: 12) Fix checkpointing statistics

DONE 5/21/97: 13) Generate MAXALIGN in gencode.nw

14) Fix _SL_SYSTEM for libshade compilation

DONE 5/26/97: 15) Fix multi-file stuff (in particular in chkpt-output.c)
    There was a bug in c4.l

16) Compile in selective conversion, i.e. only those data types that need conversion
    should require a function call

17) Generate a bunch of conversion files for all popular architectures

DONE 6/11/97: 18) Use autoconf for configuring things

19) Allocate Usedlist on heap w/ SysAllocate!

20) Create a function output_file_header(FILE *fp) to replace multiple
    incarnations of this, e.g. in chkpt-convert.nw.  There is one already!

21) Insert integrity token for UCF conversion into generated source codes

DONE 6/13/97: 22) Include into Makefile: install and dist rules
    dist: do all flexing and notangling in advance, and only ship plain
          codes that don't require additional packages
    install: mkdir's lib and bin etc.

DONE 6/28/97: 23) Expand user .h files in .ft.c files to avoid having to supply
    structures in a fully elaborated manner in .h files.

24) Add library functions to function pointer table that are assigned to
    function pointers! (cf. tests/funptr8.c)

25) Check for uninitialized pointers before call to checkpoint and warn!
    This will reduce the chance of dangling pointers.
 
26) Get line information and debugging aids ready. This is currently a mess.

DONE 6/28/97: 27) metric numbering scheme is buggy. In particular, on different systems
    with different include files the metric numbers are different. Also,
    if a structure is included multiple times (e.g. via a .h file), the
    metric is computed multiple times rather than just once!

28) I suspect that the large pointer stack required for the md program is
    due to the fact that the s_addr of heap objects is only assigned AFTER
    the object is pushed onto the shadow stack rather than BEFORE. 

    THAT'S FORTUNATELY NOT THE CASE. However, make sure that heap objects
    are reallocated during recovery in the same order as they are allocated
    by the user. Otherwise, we wind up with larger numbers of forward pointers
    when checkpointing after recovery!

29) Check out what happens if the application program uses preprocessor defines
    to use different include files with potentially different structures. I guess,
    the type metric naming scheme gets screwed by that. Also, can we do something
    about cpp guarded includes of OS functions/structures at all?

DONE 7/25/97: 30) Introduce a "driver" program for porch that calls sub-programs to achieve
    modularity, for example for cross compilation

31) Think about compiler dependent data representations! config.h may not be
    just machine dependent! Alex Caro's suggestion: Introduce my own typedefs
    for basic types.

32) Use top makefile for common defines

33) Handle unions

34) Handle bitfields

35) using -il spoils structure gathering: see chkpt-pad.nw line 491
     also w/o -il -> stacksueptr6.c

36) Move typedefs in inner blocks to toplevel

37) Check TODO in read_stack/restorestate.c on alpha

38) Check magic numbers in mm.c

39) Change _SL_UCF_ARCH_FLAG to default runtime checking

40) Change type of ptr conversion functions to work better with 64bit pointers

41) Write configure check for ident. If not working, compile ident.c in tools
    and copy it to src/porch

42) Get rid of duplicate code for save, restore, and recovery. We know
    ucf and target architecture during compilation!

43) Clean up noweb generation of include files: Rather than generating them 
    manually, have noweb gather all "exported" chunks.

44) Check out whether there are instances where NodeSizeof needs to be
    replaced by NodeTargetSizeof for cross-compilation! May be, NodeSizeof
    should be used, if no target arch is requested. At least, we could check
    whether the host config.h and the Node* function values coincide.

45) Can we cache the ranges of text and function pointers to decide faster
    than searching each of the corresponding tables whether a databss pointer
    is a *normal* databss pointer? 

DONE 9/7/97: 46) Sort out static local variables: Generate databss checkpoint code for those!
    I suppose this doesn't work since I introduced the offset w.r.t. the bottom
    of the shadow segment.

47) Long double conversion bit fiddling for i386=UCF must be done on all
    other machines!

48) Introduce Word/Double distinction in libshade for funptrs. Currently,
    both, ptrs and funptrs are treated the same.

49) GNUC supports 16 byte long doubles on ultras! Build configuration files
    for that.

DONE 9/10/97: 50) Check forward pointers to static locals, cf. 46

51) Include native machine checks that compare the target architecture format
    and the actual machine format at runtime. This is a safety check to catch
    outdated machine config.h files!

52) Prepend _SL_ to heapmetric_t

53) Recognize specialized target architectures (e.g. sparcld) during
    installation!
