File:  [Research Unix] / researchv10no / cmd / sml / src / sparc / sparcglue.sml
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:21:34 2018 UTC (8 years, 1 month ago) by root
Branches: belllabs, MAIN
CVS tags: researchv10, HEAD
researchv10 Norman

(* Copyright 1989 by AT&T Bell Laboratories *)
(* sparcglue.sml
 *
 * J.H. Reppy (3/15/89)
 * Cornell University
 * Ithaca, NY  14853
 * [email protected]
 *
 * HISTORY:
 *   03/15/89  created
 *   11/20/89  changed to use new code generator
 *)

structure SparcMC : CODEGENERATOR = 
struct
    structure SparcC = Coder(structure M = SparcInstr and E = SparcMCEmit)
    structure MachGen = CPScomp(SparcCM(structure C = SparcC))
    fun generate lexp = (
	  MachGen.compile lexp;
	  SparcC.finish();
	  SparcMCode.getCodeString())
end

structure SparcAC : ASSEMBLER =
struct
    structure SparcC = Coder(structure M = SparcInstr and E = SparcAsEmit)
    structure AssemGen = CPScomp(SparcCM(structure C = SparcC))
    fun generate (lexp, stream) = (
	  SparcAsCode.outfile := stream;
	  AssemGen.compile lexp;
	  SparcC.finish())
end

structure IntSparc = IntShare(structure Machm = SparcMC
		  val fileExtension = ".spa"
		 )
structure CompSparc = Batch(structure M=SparcMC and A=SparcAC)

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.