
P2c is a tool for translating pascal programs into c. the input consists of a set of source files in any of the following pascal dialects: hp pascal, turbo/ucsd pascal, dec vax pascal, oregon software pascal/2, macintosh programmer's workshop pascal, sun/berkeley pascal, texas instruments pascal, apollo domain pascal. modula-2 syntax is also supported.
output is a set of .c and .h files that comprise an equivalent program in any of several dialects of c. output code may be kept machine and dialect-independent, or it may be targeted to a specific machine and compiler. most reasonable pascal programs are converted into fully functional c which will compile and run with no further modifications, although p2c sometimes chooses to generate readable code at the expense of absolute generality.