myka@flop.informatik.tu-muenchen.de.informatik.tu-muenchen.dbp.de (Andreas Myka) (07/02/90)
I have difficulties in transmitting one large program written in Berkeley Pascal ( Sun Pascal ) and consisting of separate files of source code ( + additional header files ) into a X11-environment (Sun SPARC). I have already tried to convert the Pascal-code into C-code using the p2c-Cross-Compiler. Doing this several errors ocurred during the work of p2c as well as during the compilation of the created C-code with cc and gcc. As far as I can see most of the troubles arise from the original program's I/O-handling with files, i.e. REWRITE, REMOVE etc. Some of the error statements and warnings are listed below: p2c supplies the following (amongst others): - "REWRITE doesn't specify a name" - "Discovered too late that file_x should be buffered", where file_x represents the name of a file In cc: - "file_x_BFLAGS undefined", file_x as mentioned above - "file_x_BUFFER undefined" Who can answer one ( or all ) of the following questions: * Concerning p2c waht's the meaning of the warnings listed above, especially the "Discovered too late that..."-warning? * Why are the file_x_BFLAGS and file_x_BUFFER undefined? They are created by p2c, but not declared. * Why doesn't p2c know the Pascal-procedure REMOVE? * Why is the Pascal-type "text" not translated by p2c? * Do you know any other ( properly working ) Berkeley Pascal / Sun C - Cross-Compiler? * Does there any Pascal-interface for X11 exist, e.g. an interface to the XView toolbox? Andreas Myka Please answer to: myka@lan.informatik.tu-muenchen.dbp.de