Changed a few Makefiles & Fixed 3 bugs.
authorsandeep <sandeep@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sun, 18 Feb 2001 01:07:01 +0000 (01:07 +0000)
committersandeep <sandeep@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sun, 18 Feb 2001 01:07:01 +0000 (01:07 +0000)
a) Constant pointer
b) constant case label
c) scope of variables

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@621 4a8a32a2-be11-0410-ad9d-d568d2c75423

debugger/mcs51/Makefile.in
device/examples/main8051.c [new file with mode: 0644]
doc/random-notes.txt
sim/ucsim/configure
sim/ucsim/s51.src/temp.lnk
sim/ucsim/sim.src/uc.cc

index e2b240c2d36fce7b2a19feb5179e5d7e375a6f98..33f9fb5a42ccd9a024dc8a0e824add983f151ff5 100644 (file)
@@ -62,6 +62,8 @@ install: all installdirs
 # --------------------------------
 uninstall:
        rm -f $(bindir)/sdcdb
+       rm -f $(bindir)/sdcdb.el
+       rm -f $(bindir)/sdcdbsrc.el
 
 
 # Performing self-test
diff --git a/device/examples/main8051.c b/device/examples/main8051.c
new file mode 100644 (file)
index 0000000..e9d8842
--- /dev/null
@@ -0,0 +1,73 @@
+/*-------------------------------------------------------------------------
+  CPU Startup Code
+
+   Written By - Dipl.-Ing. (FH) Michael Schmitt
+    Bug-Fix Oct 15 1999
+    mschmitt@mainz-online.de
+    michael.schmitt@t-online.de
+
+   This program is free software; you can redistribute it and/or modify it
+   under the terms of the GNU General Public License as published by the
+   Free Software Foundation; either version 2, or (at your option) any
+   later version.
+
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this program; if not, write to the Free Software
+   Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+   In other words, you are welcome to use, share and improve this program.
+   You are forbidden to forbid anyone else to use, share and improve
+   what you give them.   Help stamp out software-hoarding!
+-------------------------------------------------------------------------*/
+
+/* here are some definition about the CPU */
+#include <at89c55.h>
+#include <stdio.h>
+#define CPUCLKHZ                11059200
+//#define CPUCLKHZ                24000000
+#define BAUDRATE                9600
+
+// For serial com. we use the internal UART and data exchange is done by interrupt and not via polling
+#define SERIAL_VIA_INTERRUPT
+#define SERIAL_VIA_INTERRUPT_XBUFLEN 64
+#define SERIAL_VIA_INTERRUPT_RBUFLEN 4
+//#define SERIAL_VIA_POLLING
+
+// include a 1msec timer
+#define USE_SYSTEM_TIMER
+
+// all 8051-CPU utils can be found here
+#include "cpu_tools.h"
+#include "cpu_tools.c"
+
+// that is needed for printf, will be removed after the debug version
+
+// if the following files are copied to the local folder, enable the next two lines and comment out
+// the two lines above
+//#include "vprintf.c"
+//#include "printf_large.c"
+
+//#include "harddisk.c"
+
+void main()
+{
+       // This has to be done first
+    init_hardware();
+
+
+    printf( "\n\r<<< RESET >>>\r\n" );
+
+    printf( "\n\rStartTime : " );
+    printf( "%ld \n\r",SystemTicks1msec );
+
+    while( 1 )
+    {
+        printf( "\r%ld ", SystemTicks1msec);
+        delayMsec( 999 );
+    }
+}
index 75ec188c6a2b235926ef9c4370fe744159c53d49..6c66ca4730e196778814f6b05a44fec0c4e0ca4c 100644 (file)
@@ -2,6 +2,36 @@ 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
index c32c027cccf6eccdafc270dea7a74eaa9d5515e0..365d6ccfa1ce4025ea97896e33d4a97f32d3b296 100755 (executable)
@@ -523,7 +523,7 @@ fi
 
 
 
-for ac_prog in mawk gawk nawk awk
+for ac_prog in gawk mawk nawk awk
 do
 # Extract the first word of "$ac_prog", so it can be a program name with args.
 set dummy $ac_prog; ac_word=$2
index 567863a8c077b9b76eb9da6ec9a5a01f2a2fe52c..f95694777c1ae8eee8484ca910dfc9b34e55c47f 100644 (file)
@@ -1,11 +1,11 @@
 -muxi
 -z
--b CODE = 0x0000
+-b CSEG = 0x0000
 -b DSEG = 0x0030
 -b XSEG = 0x0000
 -b ISEG = 0x0080
 -b BSEG = 0x0000
--k /stuff/sdcc/share/sdcc51lib/small
+-k /sandeep/work/sdcc/share/lib/small
 -l libsdcc
 -l libint
 -l liblong
index 73ea3d20f2012cf057ecfca2d3897910eed7b541..026648b0b50088e26106200c6add1570d3af8a1f 100644 (file)
@@ -304,7 +304,7 @@ cl_uc::MEM(enum mem_class type)
     //FIXME
 {printf("TROUBLE\n");    return(0);
 }
-  return((TYPE_UBYTE *)(m->mem));
+  return((uchar *)(m->mem));
 }