847d9c3e826eafa6e87617a1c72503bd5297342d
1 /********************************************************************
3 bytecode.c - funcions for creating the bytecode
5 Niksa Orlic, 2004-06-11
7 ********************************************************************/
11 //#include "../util/message.h"
13 #include <stdlib.h>
14 #include <string.h>
15 #include <stdio.h>
17 //#include "../main/static_entry.h"
21 //extern FILE* yyin;
22 //extern int fileSize;
24 /*
25 Allocate a new bytecode
26 */
28 {
38 }
40 /*
41 Destroy the bytecode
42 */
44 {
49 }
52 {
57 }
60 /*
61 Appends a single byte to the bytecode
62 */
64 {
65 //if (c == swap$)
66 //{
67 // int a = 1;
68 //}
70 {
73 else
81 }
85 }
87 /*
88 Append one bytecode to another.
89 */
91 {
96 {
99 }
100 else
101 {
104 }
111 }
113 /*
114 Appends a short int to the bytecode
115 */
117 {
125 }
127 /*
128 Appends a long int to the bytecode
129 */
131 {
145 }