comparison lwlink/lwlink.h @ 148:08fb11004df9

Initial pass at OS9 module support for lwlink
author lost@l-w.ca
date Fri, 26 Aug 2011 23:26:00 -0600
parents 2c24602be78f
children fc8386b13399
comparison
equal deleted inserted replaced
147:9cf1796259b2 148:08fb11004df9
27 #include "expr.h" 27 #include "expr.h"
28 28
29 #define OUTPUT_DECB 0 // DECB multirecord format 29 #define OUTPUT_DECB 0 // DECB multirecord format
30 #define OUTPUT_RAW 1 // raw sequence of bytes 30 #define OUTPUT_RAW 1 // raw sequence of bytes
31 #define OUTPUT_LWEX0 2 // LWOS LWEX binary version 0 31 #define OUTPUT_LWEX0 2 // LWOS LWEX binary version 0
32 #define OUTPUT_OS9 3 // OS9 object code module
32 33
33 typedef struct symtab_s symtab_t; 34 typedef struct symtab_s symtab_t;
34 struct symtab_s 35 struct symtab_s
35 { 36 {
36 unsigned char *sym; // symbol name 37 unsigned char *sym; // symbol name
145 struct scriptline_s *lines; // the parsed script lines (section) 146 struct scriptline_s *lines; // the parsed script lines (section)
146 int padsize; // the size to pad to, -1 for none 147 int padsize; // the size to pad to, -1 for none
147 char *execsym; // entry point symbol 148 char *execsym; // entry point symbol
148 int execaddr; // execution address (entry point) 149 int execaddr; // execution address (entry point)
149 int stacksize; // stack size 150 int stacksize; // stack size
151 int modtype; // module type
152 int modlang; // module language
153 int modattr; // module attributes
154 int modrev; // module revision
155 char *name; // module name
150 } linkscript_t; 156 } linkscript_t;
151 157
152 #ifndef __script_c_seen__ 158 #ifndef __script_c_seen__
153 extern linkscript_t linkscript; 159 extern linkscript_t linkscript;
154 #endif 160 #endif