High-level Views on Low-level Representations
High-level Views on Low-level Representations
Iavor S. Diatchki, Mark P. Jones, Rebekah Leslie
OGI School of Science and Engineering, OHSU Portland State University
This research is supported in part by the National Science Foundation Advanced Programming Languages for Embedded Systems.
Introduction
Algebraic datatypes promote a high-level view of data that hides many low-level implementation details. Many applications require the use of bitdata: data that is stored in bit fields and accessed as part of a single machine word. We explain how a modern functional language like ML or Haskell can be extended with mechanisms for specifying and using bitdata.
High-level Views on Low-level Representations ? p.1
Example: PCI Device Addresses
PCI devices are identified with a 16-bit address:
bus (8)
dev (5) fun (3)
Example: function 3, of device 6, on bus 1: hex: 0x0133 binary: 00000001 00110 011
High-level Views on Low-level Representations ? p.2
Example: Timeouts in L4
now
0 1 (5)
period 0 e (5)
never
0 (10) m (10) 0 (16)
=0 = 2em ?s =
High-level Views on Low-level Representations ? p.3
Example: Instructions for the Z80
0 0 s (3) r (3) SHIFT s, r 0 1 r (3) n (3) BIT r, n 1 0 r (3) n (3) RES r, n 1 1 r (3) n (3) SET r, n
n
r
s
000 B RLC
001 C RRC
010 D RL
011 E RR
100 H SLA
101 L SRA
110 (HL) --
111 A SRL
High-level Views on Low-level Representations ? p.4
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- fx documentation
- llvm and clang advancing compiler technology
- haskell types university of arizona
- 6 175 constructive computer architecture tutorial 1
- provablycorrectdevelopmentof reconfigurablehardwaredesigns
- whyp a c based version of ouforth for the motorola 68hc11
- solutions to exercises
- hust ctf 2010 write up
- high level views on low level representations
- csc 520 principles of programming languages 11 haskell
Related searches
- views on america
- different philosophical views on life
- high interest low level articles
- philosophical views on human nature
- philosophical views on god
- other countries views on america
- aristotle views on human nature
- aristotle views on virtue
- philosophical views on life
- karl marx views on religion
- aristotle s views on politics
- durkheim s views on religion