Back to index

cell-binutils  2.17cvs20070401
cpu-xc16x.c
Go to the documentation of this file.
00001 /* BFD support for the Infineon XC16X Microcontroller.
00002    Copyright 2006 Free Software Foundation, Inc.
00003    Contributed by KPIT Cummins Infosystems 
00004 
00005    This file is part of BFD, the Binary File Descriptor library.
00006    Contributed by Anil Paranjpe(anilp1@kpitcummins.com)
00007 
00008    This program is free software; you can redistribute it and/or modify
00009    it under the terms of the GNU General Public License as published by
00010    the Free Software Foundation; either version 2 of the License, or
00011    (at your option) any later version.
00012 
00013    This program is distributed in the hope that it will be useful,
00014    but WITHOUT ANY WARRANTY; without even the implied warranty of
00015    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016    GNU General Public License for more details.
00017 
00018    You should have received a copy of the GNU General Public License
00019    along with this program; if not, write to the Free Software
00020    Foundation, 51 Franklin Street - Fifth Floor, Boston, MA
00021    02110-1301, USA.  */
00022 
00023 #include "bfd.h"
00024 #include "sysdep.h"
00025 #include "libbfd.h"
00026 
00027 const bfd_arch_info_type xc16xs_info_struct =
00028 {
00029   16,                       /* Bits per word.  */
00030   16,                       /* Bits per address.  */
00031   8,                        /* Bits per byte.  */
00032   bfd_arch_xc16x,           /* Architecture.  */
00033   bfd_mach_xc16xs,          /* Machine.  */
00034   "xc16x",                  /* Architecture name.  */
00035   "xc16xs",                 /* Printable name.  */
00036   1,                        /* Section alignment - 16 bit.  */
00037   TRUE,                            /* The default ?  */
00038   bfd_default_compatible,   /* Architecture comparison fn.  */
00039   bfd_default_scan,         /* String to architecture convert fn.  */
00040   NULL                      /* Next in list.  */
00041 };
00042 
00043 const bfd_arch_info_type xc16xl_info_struct =
00044 {
00045   16,                       /* Bits per word.  */
00046   32,                       /* Bits per address.  */
00047   8,                        /* Bits per byte.  */
00048   bfd_arch_xc16x,           /* Architecture.  */
00049   bfd_mach_xc16xl,          /* Machine.  */
00050   "xc16x",                  /* Architecture name.  */
00051   "xc16xl",                 /* Printable name.  */
00052   1,                        /* Section alignment - 16 bit.  */
00053   TRUE,                            /* The default ?  */
00054   bfd_default_compatible,   /* Architecture comparison fn.  */
00055   bfd_default_scan,         /* String to architecture convert fn.  */
00056   & xc16xs_info_struct             /* Next in list.  */
00057 };
00058 
00059 const bfd_arch_info_type bfd_xc16x_arch =
00060 {
00061   16,                       /* Bits per word.  */
00062   16,                       /* Bits per address.  */
00063   8,                        /* Bits per byte.  */
00064   bfd_arch_xc16x,           /* Architecture.  */
00065   bfd_mach_xc16x,           /* Machine.  */
00066   "xc16x",                  /* Architecture name.  */
00067   "xc16x",                  /* Printable name.  */
00068   1,                        /* Section alignment - 16 bit.  */
00069   TRUE,                            /* The default ?  */
00070   bfd_default_compatible,   /* Architecture comparison fn.  */
00071   bfd_default_scan,         /* String to architecture convert fn.  */
00072   & xc16xl_info_struct             /* Next in list.  */
00073 };