home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c221 / 1.ddi / BIN / DEMO.BAT < prev    next >
Encoding:
DOS Batch File  |  1992-04-21  |  3.6 KB  |  69 lines

  1. @echo         ┌──────────────────────────────────────────────┐
  2. @echo         │                                              │
  3. @echo         │            A small demonstration.            │
  4. @echo         │                                              │
  5. @echo         │    You should see warning messages during    │
  6. @echo         │     this demonstration.  They illustrate     │
  7. @echo         │     High C's lint-like checking of C code.   │
  8. @echo         │                                              │
  9. @echo         │    YOU MUST HAVE Phar Lap software version   │
  10. @echo         │     2.0 or greater to run these programs.    │
  11. @echo         └──────────────────────────────────────────────┘
  12. pause
  13. @echo         ┌──────────────────────────────────────────────┐
  14. @echo         │                                              │
  15. @echo         │     Compile and link "Hello World" (and      │
  16. @echo         │      also produce an assembly listing).      │
  17. @echo         │                                              │
  18. @echo         └──────────────────────────────────────────────┘
  19. bin\hc386 demos\c\hello.c -Hon=list -Hon=asm
  20. @echo         ┌──────────────────────────────────────────────┐
  21. @echo         │                                              │
  22. @echo         │     Run the "Hello World" program.           │
  23. @echo         │                                              │
  24. @echo         └──────────────────────────────────────────────┘
  25. run386 hello
  26. pause
  27. @echo         ┌──────────────────────────────────────────────┐
  28. @echo         │                                              │
  29. @echo         │    Compile the prime-number SIEVE program,   │
  30. @echo         │         then link and run the result.        │
  31. @echo         │                                              │
  32. @echo         └──────────────────────────────────────────────┘
  33. bin\hc386 demos\c\sieve.c -Hpro=demos\c\hc.pro
  34. @echo         ┌──────────────────────────────────────────────┐
  35. @echo         │                                              │
  36. @echo         │     Run the prime-number SIEVE program.      │
  37. @echo         │                                              │
  38. @echo         └──────────────────────────────────────────────┘
  39. pause
  40. run386 sieve
  41. @echo         ┌──────────────────────────────────────────────┐
  42. @echo         │                                              │
  43. @echo         │     Compile and link a program that          │
  44. @echo         │     computes greycodes.                      │
  45. @echo         │                                              │
  46. @echo         └──────────────────────────────────────────────┘
  47. bin\hc386 demos\c\greycode.c -Hpro=demos\c\hc.pro
  48. @echo         ┌──────────────────────────────────────────────┐
  49. @echo         │                                              │
  50. @echo         │             Run, greycode, run!              │
  51. @echo         │                                              │
  52. @echo         └──────────────────────────────────────────────┘
  53. pause
  54. run386 greycode
  55. @if exist hello.ex?     del hello.ex?
  56. @if exist hello.obj     del hello.obj
  57. @if exist hello.map     del hello.map
  58. @if exist sieve.ex?     del sieve.ex?
  59. @if exist sieve.obj     del sieve.obj
  60. @if exist sieve.map     del sieve.map
  61. @if exist greycode.ex? del greycode.ex?
  62. @if exist greycode.obj del greycode.obj
  63. @if exist greycode.map del greycode.map
  64. @echo         ┌──────────────────────────────────────────────┐
  65. @echo         │                                              │
  66. @echo         │             End of demonstration.            │
  67. @echo         │                                              │
  68. @echo         └──────────────────────────────────────────────┘
  69.