[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference turris::languages

Title:Languages
Notice:Speaking In Tongues
Moderator:TLE::TOKLAS::FELDMAN
Created:Sat Jan 25 1986
Last Modified:Wed May 21 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:394
Total number of notes:2683

206.0. "PCC under VMS?" by JEREMY::DAN (Dan Frommer) Wed Oct 19 1988 17:48

    Does a VMS version of PCC exist? Can PCC itself be compiled by the
    VAX C compiler?
    
    Dan
T.RTitleUserPersonal
Name
DateLines
206.1compilable, yes; executable as is, noCOOKIE::DOUCETTEChuck, DBS/CCAS/Vortex/BabelfishThu Oct 20 1988 13:416
You could probably compile it; but, you couldn't run it as is since
it generates Ultrix VAX assembler (which isn't the same as MACRO on VMS)
with symbol information for dbx (the Ultrix debugger) and not VMS object code
with symbol information for VAX DEBUG.

Chuck
206.2Will it work for a non-Vax?JEREMY::DANDan FrommerThu Oct 20 1988 14:0910
    Let me be more specific:
    
    I'm interested in generating code for another architecture, for
    which I have a cross assembler under VMS.
    
    Is it possible to take
    PCC, make the necessary modifications to its source, compile it
    using VAX C, and then use the output image as a cross-compiler?
    
    Dan
206.3Try the DECUS C compiler3D::VESPERA bug is a feature with no known useMon Oct 24 1988 10:0517
I did a similar exersize a few years ago, changing the DECUS C compiler
code generator to output 68000 assembly source.  This may be a better
choice than pcc because you don't have to worry about license issues
and it already runs under VMS.  I used a switch to get the compiler
to dump out an intermediate form, read that file and generated the
assembler source as a separate pass.  I based my program on the code
generation in DECUS C. Of course, since it was for a
college course, I didn't get everything done to my satisfaction.
In particular, I never found out how the DECUS C compiler re-used
registers in a complex expression and so it was easy to get my compiler
to fail.

The notes file MAY14::DECUSC will tell you how to get the sources.
Martin Minow, the principal author, reads that file regularly and
is willing to answer questions.

Andy V