X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?p=rmac;a=blobdiff_plain;f=rmac.h;h=4a4e8b92b97c7b6ed6bd205ec6e773fdfeae753d;hp=fdc36ea72a38bddf7a8fb483a42a4a4b02d2facb;hb=2d302cb8c260f92984efbe9b6c8f9871beebeca5;hpb=66be644c3e5fbd7446d86c79e9e51b75c0442b49 diff --git a/rmac.h b/rmac.h index fdc36ea..4a4e8b9 100644 --- a/rmac.h +++ b/rmac.h @@ -41,10 +41,11 @@ // WARNING(FIXME: Code removed because...) #else - //If we're not compiling for Visual Studio let's assume that we're using - //some flavour of gcc instead. So let's use the gcc compliant macro instead. - //If some weirdo uses something else (I dunno, Intel compiler or something?) - //this is probably going to explode spectacularly. Let's wait for the fireworks! + // If we're not compiling for Visual Studio let's assume that we're using + // some flavour of gcc instead. So let's use the gcc compliant macro + // instead. If some weirdo uses something else (I dunno, Intel compiler or + // something?) this is probably going to explode spectacularly. Let's wait + // for the fireworks! #define DO_PRAGMA(x) _Pragma (#x) #define WARNING(desc) DO_PRAGMA(message (#desc)) #define inline __inline @@ -184,6 +185,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 +212,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__