Changed a few Makefiles & Fixed 3 bugs.
[fw/sdcc] / doc / random-notes.txt
index 7ec7b844360766bc4d3be06153ed9848ae74db0d..6c66ca4730e196778814f6b05a44fec0c4e0ca4c 100644 (file)
@@ -1,8 +1,53 @@
 Random notes
 ------------
-
 A random set of notes about sdcc and how it works.
 
+Sandeep:
+--------
+The Register Allocation story.
+
+Before I get into this there are a few important fields
+on the iCode & oprtand data structures that need to be
+addressed.
+
+iCode.
+-----
+       ->key  -  is an unique number assigned to this
+                  iCode when this icode is allocated.
+
+        ->seq  - sequence number of the iCode given in
+                acesnding order of execution.
+
+operand.
+-------
+       ->key  - unique number for an operand when operand
+                 is allocated.
+
+OP_LIVEFROM(op) - sequence number of the iCode where it was
+                  first defined. Computed in SDCClrange.c
+
+OP_LIVETO(op)   - sequence number of the iCode where it is
+                  last used. Computed in SDCClrange.c
+
+
+                 
+
+Sandeep:
+--------
+Adding memory maps for AVR, setup default map for
+local & global variables in port.h will be initialised
+by the _<port>_finaliseOptions() [good functions]..some
+kludges remain because of the "overlay" segment for 8051.
+
+The memory segment stuff will have to be made more flexible.
+Currently there does not seem to be a 1-to-1 correspondence 
+between storage class & memory map. (should there be??).
+
+Also Added check for memory map in SDCCmem.c allocLocal
+and allocglobal for "eeprom" memory space (AVR).
+
+
+
 Michael:
 --------
 Tracing parmBytes and function calls.