Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] Diff of /MLRISC/trunk/demo/README
ViewVC logotype

Diff of /MLRISC/trunk/demo/README

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2126, Thu Nov 2 16:11:29 2006 UTC revision 2789, Tue Oct 2 23:26:36 2007 UTC
# Line 3  Line 3 
3    
4  This is a simple demo backend for MLRISC.  It only includes instruction  This is a simple demo backend for MLRISC.  It only includes instruction
5  selection and register allocation.  It takes MLTREE statements as input  selection and register allocation.  It takes MLTREE statements as input
6  and emit assembly code in either Alpha or Sparc format.  A lot of things  and emit assembly code in AMD64, Alpha, or Sparc format.  A lot of things
7  are ignored here: for example, how the stack frame is laid out.  So don't  are ignored here: for example, how the stack frame is laid out.  So don't
8  expect the assembly output to run without some changes.  expect the assembly output to run without some changes.
9    
10  You can probably use this as a starting point for developing your backend,  You can probably use this as a starting point for developing your backend,
11  as a lot of stuff here is just boilerplate functor instantiation.  as a lot of stuff here is just boilerplate functor instantiation.
12    
13  Note: you do not need to have an Alpha or Sparc machine to use the system.  Note: you do not need to have an AMD64 or Alpha or Sparc machine to use the system.
14    
15  How to Build the System  How to Build the System for Alpha or Sparc
16  -----------------------  -----------------------
17    
18  I assume you already have either SML/NJ version 110.0.6, 110.25 or 110.29+  I assume you already have either SML/NJ version 110.0.6, 110.25 or 110.29+
# Line 36  Line 36 
36      to load the test inputs.      to load the test inputs.
37      Running eg1() and eg2() should produce the assembly.      Running eg1() and eg2() should produce the assembly.
38    
39    
40    How to Build the System for AMD64
41    -----------------------
42    1. Run sml in this directory
43    2. Type "CM.make "sources-amd64.cm"
44    3. Try generating code by typing
45         AMD64Demo.eg();

Legend:
Removed from v.2126  
changed lines
  Added in v.2789

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0