home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / dsp / dspgroup / c56k.arc / README < prev   
Encoding:
Text File  |  1987-11-12  |  1.1 KB  |  57 lines

  1.  
  2.     Hello,
  3.        Here is a quick note on how to use version B.5.8. In this
  4.     pre-release version, the programmer has to do a little extra
  5.     leg work (compile, assemble, link).  The final product will
  6.     not require this.
  7.  
  8.     to compile:
  9.  
  10.     MS-DOS> cc56000 foo.c
  11.  
  12.     this creates a file called "foo.asm"
  13.  
  14.  
  15.     to assemble:
  16.  
  17.     MS-DOS> asm56000  -c -l foo
  18.  
  19.     this creates 2 files, foo.lnk and foo.lst
  20.  
  21.  
  22.     MS-DOS> lnk56000 -c -oy:VALUE foo
  23.  
  24.     VALUE is a hex value that must be greater than 0.  If the
  25.     program being compiled makes use of LONG data types, the 
  26.     programmer must define the runtime stack size. The rule of
  27.     thumb is 1 stack location for every long variable, remember
  28.     if the function is recursive - you could be in trouble, so
  29.     be generous.  See example:
  30.  
  31.     foo()
  32.     {
  33.        long i,j,k;
  34.  
  35.        ;
  36.        bar();
  37.        ;
  38.     }
  39.  
  40.     bar()
  41.     {
  42.        long l,m,n;
  43.  
  44.        ;
  45.        ;
  46.        ;
  47.     }
  48.  
  49.     this example will require AT least 7 locations (6 variables +
  50.     1 mandatory).
  51.  
  52.     This creates a file for the ADS/simulator called foo.lod
  53.  
  54.  
  55.     Good luck -
  56.     Peter Percosan
  57.