/*-------------------------------------------------------------------------
- device.c - Accomodates subtle variations in PIC16 devices
+ device.c - Accomodates subtle variations in PIC16 devices
+
Written By - Scott Dattalo scott@dattalo.com
Ported to PIC16 By - Martin Dubuc m.dubuc@rogers.com
/*-------------------------------------------------------------------------
- device.c - Accomodates subtle variations in PIC16 devices
+ device.c - Accomodates subtle variations in PIC16 devices
+
Written By - Scott Dattalo scott@dattalo.com
This program is free software; you can redistribute it and/or modify it
/*-------------------------------------------------------------------------
- gen.c - source file for code generation for pic16
+ gen.c - source file for code generation for pic16
Written By - Sandeep Dutta . sandeep.dutta@usa.net (1998)
and - Jean-Louis VERN.jlvern@writeme.com (1999)
/*-------------------------------------------------------------------------
- SDCCgen51.h - header file for code generation for 8051
+ gen.h - header file for code generation for PIC16
Written By - Sandeep Dutta . sandeep.dutta@usa.net (1998)
PIC port - T. Scott Dattalo scott@dattalo.com (2000)
what you give them. Help stamp out software-hoarding!
-------------------------------------------------------------------------*/
-#ifndef SDCCGENPIC14_H
-#define SDCCGENPIC14_H
+#ifndef SDCCGENPIC16_H
+#define SDCCGENPIC16_H
struct pCodeOp;
/*-------------------------------------------------------------------------
- genarith.c - source file for code generation - arithmetic
+
+ genarith.c - source file for code generation - arithmetic
Written By - Sandeep Dutta . sandeep.dutta@usa.net (1998)
and - Jean-Louis VERN.jlvern@writeme.com (1999)
/*-------------------------------------------------------------------------
- SDCCglue.c - glues everything we have done together into one file.
+ glue.c - glues everything we have done together into one file.
Written By - Sandeep Dutta . sandeep.dutta@usa.net (1998)
This program is free software; you can redistribute it and/or modify it
-/** @file main.c
- pic16 specific general functions.
+/*-------------------------------------------------------------------------
+
+ main.c - pic16 specific general functions.
+
+ Written by - Scott Dattalo scott@dattalo.com
+ Ported to PIC16 by - Martin Dubuc m.debuc@rogers.com
+
+ Note that mlh prepended _pic16_ on the static functions. Makes
+ it easier to set a breakpoint using the debugger.
+
+
+ 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.
+-------------------------------------------------------------------------*/
- Note that mlh prepended _pic16_ on the static functions. Makes
- it easier to set a breakpoint using the debugger.
-*/
#include "common.h"
#include "main.h"
#include "ralloc.h"
/*-------------------------------------------------------------------------
- pcode.c - post code generation
+ pcode.c - post code generation
+
Written By - Scott Dattalo scott@dattalo.com
Ported to PIC16 By - Martin Dubuc m.dubuc@rogers.com
}
#endif
+/*
#if !defined(__BORLANDC__) && !defined(_MSC_VER)
#warning Fix this if-conditional
#else
#pragma message( "warning Fix this if-conditional" )
#endif
+*/
+
/* the !(reg->rIdx==-1) is a temporary hack. It should be changed - VR 6-Jun-2003 */
if( ( (reg /*&& !(reg->rIdx==-1)*/ && !isACCESS_BANK(reg) && (isBankInstruction(pc)==-1) && !(reg->alias == 0x80) )
/*|| (PCI(pc)->op != POC_CALL)*/ )
/*-------------------------------------------------------------------------
- pcodeflow.c - post code generation flow analysis
+ pcodeflow.c - post code generation flow analysis
Written By - Scott Dattalo scott@dattalo.com
Ported to PIC16 By - Martin Dubuc m.dubuc@rogers.com
/*-------------------------------------------------------------------------
- pcode.h - post code generation
+ pcode.h - post code generation
+
Written By - Scott Dattalo scott@dattalo.com
PIC16 port - Martin Dubuc m.dubuc@rogers.com
/*-------------------------------------------------------------------------
- pcodepeep.c - post code generation
+ pcodepeep.c - post code generation
+
Written By - Scott Dattalo scott@dattalo.com
Ported to PIC16 By - Martin Dubuc m.dubuc@rogers.com
/*-------------------------------------------------------------------------
- pcoderegs.c - post code generation register optimizations
+ pcoderegs.c - post code generation register optimizations
Written By - Scott Dattalo scott@dattalo.com
Ported To PIC16 By - m.dubuc@rogers.com
/*-------------------------------------------------------------------------
- pcoderegs.h - post code generation register optimizations
+ pcoderegs.h - post code generation register optimizations
Written By - Scott Dattalo scott@dattalo.com
/*------------------------------------------------------------------------
- SDCCralloc.c - source file for register allocation. (8051) specific
+ ralloc.c - source file for register allocation. PIC16 specific
Written By - Sandeep Dutta . sandeep.dutta@usa.net (1998)
Added Pic Port T.scott Dattalo scott@dattalo.com (2000)
/*-------------------------------------------------------------------------
- SDCCralloc.h - header file register allocation
+ ralloc.h - header file register allocation
Written By - Sandeep Dutta . sandeep.dutta@usa.net (1998)
PIC port - T. Scott Dattalo scott@dattalo.com (2000)