]> Shamusworld >> Repos - rmac/blobdiff - rmac.h
Added .opt directive with similar syntax to command line. Example syntax: '.opt ...
[rmac] / rmac.h
diff --git a/rmac.h b/rmac.h
index fdc36ea72a38bddf7a8fb483a42a4a4b02d2facb..1fa419bc172d153c7f7f0d7ea92e301619827873 100644 (file)
--- a/rmac.h
+++ b/rmac.h
@@ -184,6 +184,16 @@ PTR
 
 //#define RISCSYM      0x00010000
 
+// Optimisation defines
+enum
+{
+       OPT_ABS_SHORT       = 0,
+       OPT_MOVEL_MOVEQ     = 1,
+       OPT_BSR_BCC_S       = 2,
+       OPT_INDIRECT_DISP   = 3,
+       OPT_COUNT   // Dummy, used to count number of optimisation switches
+};
+
 // Globals, externals, etc.
 extern int verb_flag;
 extern int debug;
@@ -201,11 +211,12 @@ extern int sbra_flag;
 extern int obj_format;
 extern int legacy_flag;
 extern LONG PRGFLAGS;
-extern int optim_flag;
+extern int optim_flags[OPT_COUNT];
 
 // Exported functions
 char * fext(char *, char *, int);
 int nthpath(char *, int, char *);
+int ParseOptimization(char * optstring);
 
 #endif // __RMAC_H__