* src/ds390/gen.c (genNearPointerGet),
[fw/sdcc] / src / port.h
index 3e3aec9411ad99a1129379e54d36c05b93abc5df..9281f6630556edb75938515a690f7899060ce194 100644 (file)
@@ -104,6 +104,8 @@ typedef struct
        void (*do_link) (void);
         /** Extension for object files (.rel, .obj, ...) */
        const char *rel_ext;
+       /** 1 if port needs the .lnk file, 0 otherwise */
+       const int needLinkerScript;
       }
     linker;
 
@@ -249,6 +251,16 @@ typedef struct
     */
     bool (*hasNativeMulFor) (iCode *ic, sym_link *left, sym_link *right);
 
+    /** Returns true if the port has implemented certain bit
+        manipulation iCodes (RRC, RLC, SWAP, GETHBIT)
+    */
+    bool (*hasExtBitOp) (int op, int size);
+    
+    /** Returns the relative expense of accessing a particular output
+        storage class. Larger values indicate higher expense.
+    */
+    int (*oclsExpense) (struct memmap *oclass);
+    
     /** If TRUE, then tprintf and !dw will be used for some initalisers
      */
     bool use_dw_for_init;