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/branches/primop-branch-3/system/ADD-PRIMOPS
ViewVC logotype

Diff of /sml/branches/primop-branch-3/system/ADD-PRIMOPS

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

revision 2600, Wed May 23 20:16:36 2007 UTC revision 2601, Wed May 23 20:20:16 2007 UTC
# Line 1  Line 1 
1  Procedure to add a new primop  Procedure to add a new primop
2    
3  Step 1:  Step 1:
   o compiler/FLINT/kernel/primop.{sig,sml}      -- define primop  
4    o compiler/DEVNOTES/Flint/primop-list         -- add description    o compiler/DEVNOTES/Flint/primop-list         -- add description
5    o compiler/Semant/statenv/prim.sml            -- add to Inline structure    o compiler/FLINT/kernel/primop.{sig,sml}      -- add primop definition
6    o compiler/ElabData/basics/primoptypemap.sml  -- add with intrinsic type    o compiler/ElabData/basics/primoptypemap.sml  -- add with intrinsic type
7    o compiler/FLINT/trans/primopmap.sml          -- add representation    o compiler/FLINT/trans/primopmap.sml          -- add representation
8      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
11    
# Line 18  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.2600  
changed lines
  Added in v.2601

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