How to build a checker for a new target.

  1. Edit checker/makefile and add the name of your new target to the variable ARCHS.
  2. The checker requires the following files:
    $(TARGET).spec
    contains the target's specification.
    $(TARGET)-name.spec
    contains assembly syntax specification. This specification could be empty, if $(TARGET).spec completely specifies the assembly syntax.
    $(TARGET)-checker.s
    contains any directives that must appear at the beginning of an assembly file on the target. See {mips,sparc,pentium}-checker.s.
    $(TARGET)-check.spec
    contains "discard" and "keep" directives that choose which constructors to check. This file could be empty if the user wants to check all constructors.
    $(TARGET)-bits.c
    contains the code for "emitbits", which emits binary data using assembly pseudo-ops. See mips-bits.c
    $(TARGET)-bits.h
    the signature for "emitbits". See mips-bits.h.
  3. Once all these files exist, execute:
       make $(TARGET)
    
    There are two rules that MUST be executed on the target architecture: "chkraddr" and "do$(TARGET)". The "chkraddr" rule computes the start address of the text section in an object file. The "do$(TARGET)" rule runs the shell scripts that assemble and disassemble the generated assembly files and that report errors to the user.