Back to index

cell-binutils  2.17cvs20070401
cpu-m32c.c
Go to the documentation of this file.
00001 /* BFD support for the M16C/M32C processors.
00002    Copyright (C) 2004 Free Software Foundation, Inc.
00003 
00004    This file is part of BFD, the Binary File Descriptor library.
00005 
00006    This program is free software; you can redistribute it and/or modify
00007    it under the terms of the GNU General Public License as published by
00008    the Free Software Foundation; either version 2 of the License, or
00009    (at your option) any later version.
00010 
00011    This program is distributed in the hope that it will be useful,
00012    but WITHOUT ANY WARRANTY; without even the implied warranty of
00013    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014    GNU General Public License for more details.
00015 
00016    You should have received a copy of the GNU General Public License
00017    along with this program; if not, write to the Free Software
00018    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */
00019 
00020 #include "bfd.h"
00021 #include "sysdep.h"
00022 #include "libbfd.h"
00023 
00024 static const bfd_arch_info_type arch_info_struct[] =
00025 {
00026   {
00027     32,                            /* bits per word */
00028     32,                            /* bits per address */
00029     8,                      /* bits per byte */
00030     bfd_arch_m32c,          /* architecture */
00031     bfd_mach_m32c,          /* machine */
00032     "m32c",                 /* architecture name */
00033     "m32c",                 /* printable name */
00034     3,                      /* section align power */
00035     FALSE,                  /* the default ? */
00036     bfd_default_compatible, /* architecture comparison fn */
00037     bfd_default_scan,              /* string to architecture convert fn */
00038     NULL                    /* next in list */
00039   },
00040 };
00041 
00042 const bfd_arch_info_type bfd_m32c_arch =
00043 {
00044   32,                       /* Bits per word.  */
00045   32,                       /* Bits per address.  */
00046   8,                        /* Bits per byte.  */
00047   bfd_arch_m32c,            /* Architecture.  */
00048   bfd_mach_m16c,            /* Machine.  */
00049   "m32c",                   /* Architecture name.  */
00050   "m16c",                   /* Printable name.  */
00051   4,                        /* Section align power.  */
00052   TRUE,                            /* The default ?  */
00053   bfd_default_compatible,   /* Architecture comparison fn.  */
00054   bfd_default_scan,         /* String to architecture convert fn.  */
00055   &arch_info_struct[0],            /* Next in list.  */
00056 };