sewardj | ec6ad59 | 2004-06-20 12:26:53 +0000 | [diff] [blame] | 1 | |
| 2 | /*---------------------------------------------------------------*/ |
| 3 | /*--- ---*/ |
| 4 | /*--- This file (main.c) is ---*/ |
| 5 | /*--- Copyright (c) 2004 OpenWorks LLP. All rights reserved. ---*/ |
| 6 | /*--- ---*/ |
| 7 | /*---------------------------------------------------------------*/ |
| 8 | |
| 9 | #include <stdio.h> |
| 10 | |
| 11 | #include <stdlib.h> |
| 12 | #include <assert.h> |
| 13 | |
| 14 | #include "storage.h" |
| 15 | #include "ir_defs.h" |
| 16 | |
| 17 | |
| 18 | |
| 19 | |
| 20 | |
| 21 | /*---------------------------------------------------------------*/ |
| 22 | /*--- Test ---*/ |
| 23 | /*---------------------------------------------------------------*/ |
| 24 | |
| 25 | int main ( void ) |
| 26 | { |
| 27 | Cell bb; |
| 28 | Cell stmts; |
| 29 | |
| 30 | storage_init(); |
| 31 | register_IR_tags(); |
| 32 | |
| 33 | stmts = cons( mkSTPut(8,4, mkEXAtomI(mkWord32(99))), |
| 34 | cons( mkSTPut(7,3, mkEXTmp(mkIRTemp(55))), |
| 35 | NIL )); |
| 36 | |
| 37 | bb = mkBB(NIL, stmts, mkUJump(mkWord32(65565))); |
| 38 | ppIRBB(stdout, bb); |
| 39 | |
| 40 | storage_done(); |
| 41 | |
| 42 | return 0; |
| 43 | } |
| 44 | |
| 45 | |
| 46 | |