Hi gpc cracks
I have an interesting problem:
Original source: Borland Delphi 6 Target source: gpc
Because gpc knows a lot about Delphi concepts, this is no problem at all and will be done quite quickly.
But: The functions and procedures of the gpc object code (e.g. myFuncs.o, produced by gpc) should be linkable with an VERY OLD native SUN SPARC compiler, the `f77' from SUN's WorkShop 4.2 (a release from 1995).
YES, tasks like that really exist!
If no one can help, I have to translate the Delphi/gpc source to standard Pascal, what means, working again with include files instead of UNITS (and many more worse things). Remembers me of 1985... ;) (Last but not least this will also be an absolutely boring job to do...)
Unfortunately no newer native `pc' from SUN exists.
I REALLY would appreciate any help.
Cheers, Roland
Hi, all
Does anyone know whether GPC can be made to work with Message Passing Interface code? MPI is available, to the best of my knowledge, only in Fortran, C, and C++ flavors. But I've got a whole lot of Pascal code, and I'd hate to have to rewrite it all in C for parallelizing. Especially since I don't know C ;-)
I'd appreciate any experience and encouragement.
Toby
Toby Ewing wrote:
Does anyone know whether GPC can be made to work with Message Passing Interface code? MPI is available, to the best of my knowledge, only in Fortran, C, and C++ flavors. But I've got a whole lot of Pascal code, and I'd hate to have to rewrite it all in C for parallelizing. Especially since I don't know C ;-)
No, please don't. If anything, translate the MPI interface to Pascal (only the interface declarations need to be translated, the MPI implementation can remain in C or whatever it's in). This would be a one-time effort, and others could benefit from it ...
Frank
Frank Heckenbach wrote:
Toby Ewing wrote:
Does anyone know whether GPC can be made to work with Message Passing Interface code? MPI is available, to the best of my knowledge, only in Fortran, C, and C++ flavors. But I've got a whole lot of Pascal code, and I'd hate to have to rewrite it all in C for parallelizing. Especially since I don't know C ;-)
No, please don't. If anything, translate the MPI interface to Pascal (only the interface declarations need to be translated, the MPI implementation can remain in C or whatever it's in). This would be a one-time effort, and others could benefit from it ...
OK, that sounds like a solution. Any idea how horrible a job this is? Any suggestions on how to proceed? I haven't even bought the MPI manual yet, so this is all pretty new to me. I do know that there are a lot of MPI implementations out there, and I don't yet know which I'll be using, or how GCC-compatible it is.
Toby
On Wed, Jan 15, 2003 at 08:35:27AM -0600, Toby Ewing wrote:
Frank Heckenbach wrote:
Toby Ewing wrote:
Does anyone know whether GPC can be made to work with Message Passing Interface code? MPI is available, to the best of my knowledge, only in Fortran, C, and C++ flavors. But I've got a whole lot of Pascal code, and I'd hate to have to rewrite it all in C for parallelizing. Especially since I don't know C ;-)
No, please don't. If anything, translate the MPI interface to Pascal (only the interface declarations need to be translated, the MPI implementation can remain in C or whatever it's in). This would be a one-time effort, and others could benefit from it ...
OK, that sounds like a solution. Any idea how horrible a job this is? Any suggestions on how to proceed? I haven't even bought the MPI manual yet, so this is all pretty new to me. I do know that there are a lot of MPI implementations out there, and I don't yet know which I'll be using, or how GCC-compatible it is.
A student of mine, Cas Cremers, used FreePascal with (part of) LAM/MPI on a cluster of Linux machines. You can find relevant files (i.e. Pascal interfaces to some basic parts of LAM/MPI) on
http://www.win.tue.nl/~ccremers/pascalmpi/index.html
I have no idea how easy it is to get this to work with GPC, but there are further pointers to guide you from there.
Good luck,
Tom Verhoeff
Frank Heckenbach wrote:
Toby Ewing wrote:
Does anyone know whether GPC can be made to work with
Message Passing
Interface code? MPI is available, to the best of my
knowledge, only in
Fortran, C, and C++ flavors. But I've got a whole lot of
Pascal code,
and I'd hate to have to rewrite it all in C for parallelizing. Especially since I don't know C ;-)
No, please don't. If anything, translate the MPI interface to Pascal (only the interface declarations need to be translated, the MPI implementation can remain in C or whatever it's in). This would be a one-time effort, and others could benefit from it ...
OK, that sounds like a solution. Any idea how horrible a job this is? Any suggestions on how to proceed? I haven't even bought the MPI manual yet, so this is all pretty new to me. I do know that there are a lot of MPI implementations out there, and I don't yet know which I'll be using, or how GCC-compatible it is.
I'm taking a "high performance computing/parallel computing" class at my college right now. We use a version of MPI distrubuted at ftp.mcs.anl.gov/pub/mpi. It's very gcc/g++ compliant. I would imaging that it would not be hard to convert it to gpc either.
Good luck!
BRM
Toby