home *** CD-ROM | disk | FTP | other *** search
/ Crawly Crypt Collection 2 / crawlyvol2.bin / program / pascal / p2cbin / readme.st < prev    next >
Encoding:
Text File  |  1993-09-12  |  1.3 KB  |  34 lines

  1. p2c  --  Dave Gillespie's Pascal-to-C convertor for the Atari ST
  2. (Ported by Steven Ourada sourada@iastate.edu)
  3.  
  4. This is just a quick and dirty port, I don't have a lot of interest in Pascal
  5. except that I have to use it for some programming this semester. If there
  6. are bugs in the port, I'll look at them, but don't count on me to fix them :-)
  7. No extensive testing has been done.
  8.  
  9. All I did to port it was get the original source distribution, change the
  10. char * in ISBOGUS to a void *, change ResultName in p2crc from Result to
  11. Result%s, edit the Makefile appropriately, and make. There was a warning or
  12. two during compilation, but in my judgement they were not significant.
  13.  
  14. The sources as they appear in the source archive are what I ended up with,
  15. therefore they are a little different than the originals. If you want the
  16. originals, get them from p2c-1.20.tar.Z.
  17.  
  18. Compiled with GCC 2.4.5, MiNTlibs 34. 
  19.  
  20. Usage:
  21. ------
  22. Unpack this archive. (You knew that.)
  23. Put the home directory somewhere appropriate, and point the env var P2C_HOME
  24. to it.
  25. Make a directory p2c somewhere in your includes, and put p2c.h in it.
  26. Put libp2c.olb in your libs.
  27. Put p2c in your binaries.
  28. p2c filename.pas
  29. gcc -o filename filename.c -llibp2c.olb
  30.  
  31. If all went right and you're lucky, you'll have an executable that does
  32. what the pascal program was supposed to.
  33.  
  34.