[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:Thu May 22 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:394
Total number of notes:2683

305.0. "Wanted: Toy Compiler " by FMCSSE::HEINTZE () Fri Mar 29 1991 02:18

    We want to contemplate implementing a (functionally) small OODB.  My
    concern is with storing executable data as means of implementing the
    methods that compose an object.  Since our product must accomodate DECs
    latest processors (for which many products have not been ported) we
    don't feel it is likely that existing OODB or DB products will be
    available to us.
     
    We don't want to store VAX11 native code in the OODB.  I suppose we
    could put a pointer to a shareable image, but this won't work for UN*X.
    We want the contents of the DB as portable as possible.
    
    Consequently we are contemplating the notion of writing (or otherwise
    obtaining) a compiler that produces PCODE instead of VAX/VMS object
    code.
    
    I know of no such animals.
    
    In the event that there are no such animals with in DEC, we will
    contemplate the notion of enhancing a toy compiler in a text book that 
    produces PCODE.
    
    I know of one such example in a text "The art of Prolog" but the
    implementation language is PROLOG (the source language is a subset of
    PASCAL).   Since I'm the only one in our group that knows PROLOG and
    PASCAL, I am in search of another example of a toy compiler to be used
    as a proof of concept.
    
                            Sieg
T.RTitleUserPersonal
Name
DateLines
305.1Pascal or Modula-2CRATE::WATSONAs simple as possible, not simplerWed Apr 03 1991 05:4729
    I've the source of the Pascal P4 compiler at home somewhere. This is a
    single pass PASCAL -> Pcode compiler. Simple but effective. It copes
    with most of the Pascal language. I also have a Pcode interpreter for
    VAX/VMS. If only I can find the TK-50 it was backed up on ...
    
    Alternativley there is the DECWRL Modula-2 compiler (Not the Modula-3
    => C compiler). This is a multi-pass Modula-2 compiler which produces
    Pcode which is the compiled to VAX Macro and hence to executable. This
    is a high quality piece of kit - capable of producing _very_ high
    quality code. There is a notes conference related to this
    (COOKIE::MODULA2). The source is available for VAX/VMS,  VAX/ULTRIX and
    (I think) MIPS/ULTRIX. The compiler will bootstrap itself. I've the
    source online at home so could easily bring it it. This is hardly a
    ``toy'' compiler but is well structured and compact.
    
    Other people who may be able to help if you decide to go the Modula-2
    route include.
    
    	GUESS::(Chuck)DOUCETTE - Did the VAX/VMS port
    	DECWRL::JOEL(McCormack) - Converted original Modula-2 compiler
    written by Mike Powell to Modula-2 (Originally written in Pascal).
    
    As an aside this compiler can also be used as a Pascal Compiler by
    compiling in a different YACC parse table !
    
    	If you want more info then you can contact me on DTN 7782 2238 (UK
    time)
    
    	Rik Watson