p2c version 1.20 Very Lazy Conversion by Minoru Toda --------------- README Well, I finally found some free (available) time to do some lazy porting. If you guys look at the code, you'll see that I did all kinds of lazy cheating, but as far as I know, it works. Here's few notes for the pascal lovers: 1. How to make/install Using my privilage as a lazy porter, I decided to have the files stored under "/boot/local/p2c/". The makefile included in this tar file will make all required files and stores them in the directories specified in the Makefile. (you need CodeWarrior to compile, since the binary is over 64k limit). To make things easier, you can just copy the contents of the "p2c-install" directory to /boot/local/p2c (or drag it to /boot/local and rename the directory to "p2c"). 2. How can I convert and compile pascal programs ? Start the p2c program the way you usually start it (below insturction assumes that p2c directory is in path). 1) p2c HelloWorld.pas This will read a pascal file called HelloWorld.pas, and should create a file called HelloWorld.c (header files may be also created). Now compile the C program by : 2) mwcc -c HelloWorld.c This will create the object files required by the linker. 3) mwld -o HelloWorld HelloWorld.o libp2c.a And finally, use the linker with the compiled object file and the lib file (located in /boot/local/p2c/lib) to finish linking the program. Now the program should be ready to be executed. 3) What are those files suffixed by .original ? Since I have done some very lazy conversion, I thought that keeping original files (unmodified) might help the user configure their copy of p2c. For complete (original) distribution, try the following URL: ftp://hpux.ee.ualberta.ca/hpux/Languages/p2c-1.20/p2c-1.20-ss-8.07.tar.gz 4) Why are the directories so messed up ? Well, this is what a very lazy conversion (vlc for short). I will try to organize them in the future. 5) What are you going to do next ? Well, mostly clean-ups, and I may decide to write some pascal units which may make coding on BeBox easier... Oh, btw, please don't bug the original author (look at the README.original) about this port. If you have any nice comments, then send it to the below address, if you have any complaints, I'll answer when I feel lazy :) ---------- _/ _/ _/ ---------------- a lazy vlc with nice .sig file --+ / _______ / \__________________________________| | _/ _/ | | ___ / __ __ / Minoru Toda (a.k.a SkyHawk, Meatball) | | / / / / / | | _____/ / / / email: todam@craft.camp.clarkson.edu | | / / / | | __ __ / __ __ / 10 Clarkson Ave. | | / / / / / / CU BOX 7791 | | __ __ / / / / Clarkson University, NY 13699-7791 | | / / / / / / U.S.A / | _______/ _______/ ---------------------------------------------------