1 .TH EM_OPT 3 "$Revision: 2.5 $"
4 emopt \- EM code peephole optimizer interface for compilers
10 .B void O_init(wsize, psize)
11 .B arith wsize, psize;
13 .B int O_open(filename)
39 .BI "void O_bss_" cstp ()
40 .BI "void O_hol_" cstp ()
41 .BI "void O_con_" cstp ()
42 .BI "void O_rom_" cstp ()
44 .B #include <em_mes.h>
45 .B void O_mes_begin(ms)
54 .BI "void O_" mnem _dlb()
55 .BI "void O_" mnem _dnam()
56 .BI "void O_" mnem _narg()
58 .B void O_insertpart(id)
61 .B void O_beginpart(id)
68 This package provides a procedural EM code peephole optimizer interface to be
69 used in compilers and other EM code producing programs. The interface
70 routines are identical to the EM_CODE(3) procedure interface except that all
71 names have been replaced by
73 It is possible to convert
74 a program that is currently using the EM_CODE interface
75 to use this module instead by defining
79 This defines a series of macros to map all the
81 names to the corresponding
83 names. The module in turn calls
85 routines to output the optimized code. Hence it is possible to add peephole
86 optimization to any program that outputs EM code using the EM_CODE module.
90 routines may be obtained by referring to the description
93 routine in EM_CODE(3).
97 ~em/modules/lib/libemopt.a
101 alloc(3), system(3), string(3), em_code(3)
104 em_nopt(1) em_code(3), read_em(3), em_mes(3)
107 returns 1 if the open is successful and 0 if not.
109 It is not possible to indicate that the argument of
111 must be seen as an unsigned value.
113 Bruce McKenzie <bruce@cosc.canterbury.ac.nz>