home *** CD-ROM | disk | FTP | other *** search
- @echo ┌──────────────────────────────────────────────┐
- @echo │ │
- @echo │ A small demonstration. │
- @echo │ │
- @echo │ You should see warning messages during │
- @echo │ this demonstration. They illustrate │
- @echo │ High C's lint-like checking of C code. │
- @echo │ │
- @echo │ YOU MUST HAVE Phar Lap software version │
- @echo │ 2.0 or greater to run these programs. │
- @echo └──────────────────────────────────────────────┘
- pause
- @echo ┌──────────────────────────────────────────────┐
- @echo │ │
- @echo │ Compile and link "Hello World" (and │
- @echo │ also produce an assembly listing). │
- @echo │ │
- @echo └──────────────────────────────────────────────┘
- bin\hc386 demos\c\hello.c -Hon=list -Hon=asm
- @echo ┌──────────────────────────────────────────────┐
- @echo │ │
- @echo │ Run the "Hello World" program. │
- @echo │ │
- @echo └──────────────────────────────────────────────┘
- run386 hello
- pause
- @echo ┌──────────────────────────────────────────────┐
- @echo │ │
- @echo │ Compile the prime-number SIEVE program, │
- @echo │ then link and run the result. │
- @echo │ │
- @echo └──────────────────────────────────────────────┘
- bin\hc386 demos\c\sieve.c -Hpro=demos\c\hc.pro
- @echo ┌──────────────────────────────────────────────┐
- @echo │ │
- @echo │ Run the prime-number SIEVE program. │
- @echo │ │
- @echo └──────────────────────────────────────────────┘
- pause
- run386 sieve
- @echo ┌──────────────────────────────────────────────┐
- @echo │ │
- @echo │ Compile and link a program that │
- @echo │ computes greycodes. │
- @echo │ │
- @echo └──────────────────────────────────────────────┘
- bin\hc386 demos\c\greycode.c -Hpro=demos\c\hc.pro
- @echo ┌──────────────────────────────────────────────┐
- @echo │ │
- @echo │ Run, greycode, run! │
- @echo │ │
- @echo └──────────────────────────────────────────────┘
- pause
- run386 greycode
- @if exist hello.ex? del hello.ex?
- @if exist hello.obj del hello.obj
- @if exist hello.map del hello.map
- @if exist sieve.ex? del sieve.ex?
- @if exist sieve.obj del sieve.obj
- @if exist sieve.map del sieve.map
- @if exist greycode.ex? del greycode.ex?
- @if exist greycode.obj del greycode.obj
- @if exist greycode.map del greycode.map
- @echo ┌──────────────────────────────────────────────┐
- @echo │ │
- @echo │ End of demonstration. │
- @echo │ │
- @echo └──────────────────────────────────────────────┘