Hi! I'm looking for the source code for the library routines (e.g. PARAM_, LEAX_B_X, Zbshift, Zequ, Zleq, etc.) needed to execute Pascal programs compiled by the Pascal/64000 compiler for the 6800 microprocessor. I have the relocatable file for the LIB6800. If anyone knows where I can find the source code, or if anyone knows of a workaround, I would be grateful. Thanks, Holly
HP 64000 using 6800 Pascal Cross Compiler
Started by ●November 15, 2004
Reply by ●November 17, 20042004-11-17
Holly Sherman wrote:> Hi! > I'm looking for the source code for the library routines (e.g. PARAM_, > LEAX_B_X, Zbshift, Zequ, Zleq, etc.) needed to execute Pascal programs > compiled by the Pascal/64000 compiler for the 6800 microprocessor. > I have the relocatable file for the LIB6800. > If anyone knows where I can find the source code, or if anyone knows > of a workaround, I would be grateful. > Thanks, > HollyHolly, Why do you want the source code? If you have the library, you can link it in and everything should work. The source is long since gone. That compiler was released in ~1981 and has been off the price list for a long time. Any archives are long gone. I was an Apps Engineer supporting emulators for HP. Until very recently I had copies of the last version of every HP 64000 series product, including emulators, compilers, assemblers, etc. I didn't destroy any of it. I gave it away to a consultant who has the tools and ability to make copies of any of it, for a price. With a little work, it would be possible to disassemble anything that you might need. Contact Tony Karavidas (sp?) at support@encoreelectronics.com. He's a good guy.
Reply by ●December 13, 20042004-12-13
I would also like to have the source for this library, although I may be able to disassemble it. The idea is to move from the HP350 computer with the HP64000 cross compiler on it to a Windows platform and use GNU to cross-compile it. I have converted some of our assembly files and some of our C files but I have no solution to translate Pascal files (140,000 lines) to C. If I would have a translator I can compile C using the GNU cross-compiler for 68020. I have the Pascal/64000 document (manual part 64800-90909) on paper, might you have that one as scanned-in document? Then I can send it to a company (Micro-Processor Services, Inc.) that might translate Pascal to C. Would contacting Tony Karavidas be a good idea? thanks in advance, Harm Salomons
Reply by ●December 13, 20042004-12-13
HarmSalomons <harm.salomons@nl.nucletron.com> wrote:> I have converted some of our assembly files and some of our C files but I > have no solution to translate Pascal files (140,000 lines) to C. > If I would have a translator I can compile C using the GNU cross-compiler > for 68020.Please note that GCC (the 'GNU compiler collection') already includes a Pascal compiler. It may not be part of the readily built cross-compiler package you're using, but you shouldn't let that stop you. Building your own GCC cross compilation toolchain is harder than just using a prebuilt binary, sure, but it's not rocket science. -- Hans-Bernhard Broeker (broeker@physik.rwth-aachen.de) Even if all the snow were burnt, ashes would remain.
Reply by ●December 13, 20042004-12-13
HarmSalomons wrote:>... snip ...> > I have converted some of our assembly files and some of our C > files but I have no solution to translate Pascal files (140,000 > lines) to C. If I would have a translator I can compile C using > the GNU cross-compiler for 68020.Why do any of that? Virtually anywhere you can use GNU C you can use GNU Pascal, which is fundamentally a different front end for gcc. Look up gpc. -- Chuck F (cbfalconer@yahoo.com) (cbfalconer@worldnet.att.net) Available for consulting/temporary embedded and systems. <http://cbfalconer.home.att.net> USE worldnet address!
Reply by ●December 13, 20042004-12-13
On Mon, 13 Dec 2004 16:23:05 +0000, Hans-Bernhard Broeker wrote:> HarmSalomons <harm.salomons@nl.nucletron.com> wrote: > > >> I have converted some of our assembly files and some of our C files but >> I have no solution to translate Pascal files (140,000 lines) to C. If I >> would have a translator I can compile C using the GNU cross-compiler for >> 68020. > > Please note that GCC (the 'GNU compiler collection') already includes a > Pascal compiler. It may not be part of the readily built cross-compiler > package you're using, but you shouldn't let that stop you. Building your > own GCC cross compilation toolchain is harder than just using a prebuilt > binary, sure, but it's not rocket science.P2C knows almost all the dialects of Pascal I'm familiar with HP, Apollo, ISO, and it's also from the Free Software Foundation. http://directory.fsf.org/devel/conversion/p2c.html
Reply by ●December 14, 20042004-12-14
When I were to use the pascal compiler of GNU then I would have to deal with some specials in the current cross-compiler. It has extensions like a user defined type, it also has compiler directives to turn a subroutine call into a trap. Also I do not want to adapt the sources to the pascal compiler because during the transition between the current environment and a future environment on a PC I need to keep the original sources as they are, to compare the results. I do not intend to spend time in changing the GNU pascal compiler although that sounds as an interesting experience. H. Salomons
Reply by ●December 14, 20042004-12-14
Thank you for pointing out this site. I tried to translate our Pascal with it, but this is not easy. It complains about 'UNSIGNED_32' types, which are built-in into the cross-compiler. Also it does not recognize function calls. I will have to look some longer to it...
Reply by ●December 14, 20042004-12-14
As I pointed out, our Pascal does not match standard pascal. I tried gpc and p2c. The move to C is for better portability.
Reply by ●December 14, 20042004-12-14
"HarmSalomons" <harm.salomons@nl.nucletron.com> writes:> As I pointed out, our Pascal does not match standard pascal. > I tried gpc and p2c. > The move to C is for better portability.You can't just use a good text editor on the Pascal source? Some definitions and the C preprocessor will handle a lot of the differences. #define begin { #define end } etc.