HI all,
Is there a chance that there would be a support for parallel programming constructs in GPC any time soon?
This is inspired by OpenMP/GOMP initiative support added to GCC 4.2. I know a couple of projects where this would be useful, and I could smuggle this as a research subject in my main project at my daily 9-5 job.
Do you think just a unit/module is required to implement this to GPC; or an actual change of compiler proper?
Frank?
Thx Mirsad
"Be conservative in what you do, be liberal in what you accept from others." -- Jon Postel
Mirsad Todorovac wrote:
HI all,
Is there a chance that there would be a support for parallel programming constructs in GPC any time soon?
This is inspired by OpenMP/GOMP initiative support added to GCC 4.2. I know a couple of projects where this would be useful, and I could smuggle this as a research subject in my main project at my daily 9-5 job.
Do you think just a unit/module is required to implement this to GPC; or an actual change of compiler proper?
OpenMP adds special syntax for parallel constructs. AFAIK there is no OpenMP standard for Pascal, but any solution following OpenMP spirit must modify parser. Also, OpenMP capabilities appeared in GCC 4.2, so one has to update gpc to work with GCC 4.2.
In short: OpenMP requires changes to compiler proper.
At 14:22 +0200 30/5/07, Waldek Hebisch wrote:
Is there a chance that there would be a support for parallel programming constructs in GPC any time soon?
This is inspired by OpenMP/GOMP initiative support added to GCC 4.2. I know a couple of projects where this would be useful, and I could smuggle this as a research subject in my main project at my daily 9-5 job.
Do you think just a unit/module is required to implement this to GPC; or an actual change of compiler proper?
OpenMP adds special syntax for parallel constructs. AFAIK there is no OpenMP standard for Pascal, but any solution following OpenMP spirit must modify parser. Also, OpenMP capabilities appeared in GCC 4.2, so one has to update gpc to work with GCC 4.2.
In short: OpenMP requires changes to compiler proper.
The RTS is also not entirely thread safe. For the most part you can get away with threading in GPC, but some of the routines (ReadString/Val etc from memory, especially any use of IOResult) are not entirely thread safe. Peter.
Mirsad Todorovac schrieb:
HI all,
Is there a chance that there would be a support for parallel programming constructs in GPC any time soon?
This is inspired by OpenMP/GOMP initiative support added to GCC 4.2. I know a couple of projects where this would be useful, and I could smuggle this as a research subject in my main project at my daily 9-5 job.
Do you think just a unit/module is required to implement this to GPC; or an actual change of compiler proper?
It requires compiler changes but it would be at least nice to have a specification/draft how OpenMP support looks in pascal ...