Changes between Version 2 and Version 3 of Commentary/Rts/Cmm
- Timestamp:
- 10/15/06 15:26:28 (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Commentary/Rts/Cmm
v2 v3 6 6 7 7 We use the C preprocessor on `.cmm` files, making extensive use of macros to make writing this low-level code a bit less tedious and error-prone. Most of our C-- macros are in [[GhcFile(includes/Cmm.h)]]. 8 9 == Additions over C-- == 10 11 The `.cmm` syntax includes the 12 {{{ 13 foreign "C" cfunctionname(R1) [R2]; 14 }}} 15 16 I think the [R2] part is the (set of) register(s) that you need to save over the call. 17
