X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2FSDCCglobl.h;h=ef7d64ed2c001bc5707cca0459f483843abe03d8;hb=8fca63fbcde6e36936906190fa8e41f072a69e34;hp=0efe1d67e12d0890d6516ed3998e9257eb1a4535;hpb=6829053c2534aed16a8141dcf0651a4d33932a37;p=fw%2Fsdcc diff --git a/src/SDCCglobl.h b/src/SDCCglobl.h index 0efe1d67..ef7d64ed 100644 --- a/src/SDCCglobl.h +++ b/src/SDCCglobl.h @@ -98,6 +98,7 @@ typedef int bool; #define PRAGMA_NOOVERLAY "NOOVERLAY" #define PRAGMA_CALLEESAVES "CALLEE-SAVES" #define PRAGMA_EXCLUDE "EXCLUDE" +#define PRAGMA_OVERLAY "OVERLAY" #define SMALL_MODEL 0 #define LARGE_MODEL 1 #define TRUE 1 @@ -188,6 +189,14 @@ enum MODEL_FLAT24 = 16 }; +/* overlay segment name and the functions + that belong to it. used by pragma overlay */ +typedef struct { + char *osname; /* overlay segment name */ + int nfuncs; /* number of functions in this overlay */ + char *funcs[128]; /* function name that belong to this */ +} olay; + /* other command line options */ struct options { @@ -211,6 +220,7 @@ struct options int cyclomatic; /* print cyclomatic information */ int noOverlay; /* don't overlay local variables & parameters */ int mainreturn; /* issue a return after main */ + int xram_movc; /* use movc instead of movx to read xram (mcs51) */ int nopeep; /* no peep hole optimization */ int asmpeep; /* pass inline assembler thru peep hole */ int debug; /* generate extra debug info */ @@ -231,6 +241,8 @@ struct options char *excludeRegs[32]; /* registers excluded from saving */ int all_callee_saves; /* callee saves for all functions */ int stack_probe; /* insert call to function __stack_probe */ + int tini_libid; /* library ID for TINI */ + olay olays[128]; /* overlay segments used in #pragma OVERLAY */ /* starting address of the segments */ int xstack_loc; /* initial location of external stack */ int stack_loc; /* initial value of internal stack pointer */