Back to index

cell-binutils  2.17cvs20070401
Defines | Functions | Variables
cpu-arc.c File Reference
#include "bfd.h"
#include "sysdep.h"
#include "libbfd.h"

Go to the source code of this file.

Defines

#define ARC(mach, print_name, default_p, next)

Functions

int arc_get_mach PARAMS ((char *))
int arc_get_mach (char *name)

Variables

static const bfd_arch_info_type arch_info_struct []
const bfd_arch_info_type bfd_arc_arch

Define Documentation

#define ARC (   mach,
  print_name,
  default_p,
  next 
)
Value:
{                                  \
    32,       /* 32 bits in a word  */    \
    32,       /* 32 bits in an address  */       \
    8, /* 8 bits in a byte  */            \
    bfd_arch_arc,                  \
    mach,                          \
    "arc",                         \
    print_name,                           \
    4, /* section alignment power  */     \
    default_p,                            \
    bfd_default_compatible,        \
    bfd_default_scan,                     \
    next,                          \
  }

Definition at line 25 of file cpu-arc.c.


Function Documentation

int arc_get_mach ( char *  name)

Definition at line 61 of file cpu-arc.c.

{
  const bfd_arch_info_type *p;

  for (p = &bfd_arc_arch; p != NULL; p = p->next)
    if (strcmp (name, p->printable_name) == 0)
      return p->mach;
  return -1;
}

Here is the call graph for this function:

Here is the caller graph for this function:

int arc_get_mach PARAMS ( (char *)  )

Variable Documentation

Initial value:

Definition at line 41 of file cpu-arc.c.

Initial value:

Definition at line 50 of file cpu-arc.c.