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 /sml/trunk/system/ADD-PRIMOPS
ViewVC logotype

Diff of /sml/trunk/system/ADD-PRIMOPS

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

revision 2162, Thu Nov 2 21:20:47 2006 UTC revision 2603, Wed May 23 21:50:42 2007 UTC
# Line 1  Line 1 
1    Procedure to add a new primop
2    
3  Step 1:  Step 1:
4    o compiler/FLINT/kernel/primop.{sig,sml}      -- define primop    o compiler/DEVNOTES/Flint/primop-list         -- add description
5      o compiler/FLINT/kernel/primop.{sig,sml}      -- add primop definition
6      o compiler/ElabData/basics/primoptypemap.sml  -- add with intrinsic type
7      o compiler/FLINT/trans/primopmap.sml          -- add representation
8    o compiler/Semant/statenv/prim.sml            -- add to Inline structure    o compiler/Semant/statenv/prim.sml            -- add to Inline structure
9    o compiler/Semant/pickle/picklemod-new.sml    -- pickle    o compiler/Semant/pickle/picklemod-new.sml    -- pickle
10    o compiler/Semant/pickle/unpicklemode-new.sml -- unpickle    o compiler/Semant/pickle/unpicklemode-new.sml -- unpickle
# Line 13  Line 18 
18    o compiler/FLINT/cps/convert.sml              -- conversion to cps    o compiler/FLINT/cps/convert.sml              -- conversion to cps
19    o compiler/CodeGen/main/mlriscGen.sml         -- generate appropriate mltree    o compiler/CodeGen/main/mlriscGen.sml         -- generate appropriate mltree
20    
21          -- compile compiler          -- compile compiler to fixpt
22    
23  Step 3:  Step 3:
24    o system/smlnj/init/built-in.sml              -- add to InlineT    o system/smlnj/init/built-in.sml              -- add to InlineT
25    o <use primop where you like> usually in    o <use primop where you like> usually in
26          system/Basis/Implementation          system/Basis/Implementation
27        [Note that InlineT is not visible in
28         top-level environment.]
29    
30    
31    -------------------
32    Edit history:
33    [DBM: 5/23/07]

Legend:
Removed from v.2162  
changed lines
  Added in v.2603

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