package bap-frames

  1. Overview
  2. Docs
type t =
  1. | Unknown
  2. | Obscure
  3. | M68k
  4. | Vax
  5. | I960
  6. | Or32
  7. | Sparc
  8. | Spu
  9. | Mips
  10. | I386
  11. | L1om
  12. | We32k
  13. | Tahoe
  14. | I860
  15. | I370
  16. | Romp
  17. | Convex
  18. | M88k
  19. | M98k
  20. | Pyramid
  21. | H8300
  22. | Pdp11
  23. | Plugin
  24. | Powerpc
  25. | Rs6000
  26. | Hppa
  27. | D10v
  28. | D30v
  29. | Dlx
  30. | M68hc11
  31. | M68hc12
  32. | Z8k
  33. | H8500
  34. | Sh
  35. | Alpha
  36. | Arm
  37. | Ns32k
  38. | W65
  39. | Tic30
  40. | Tic4x
  41. | Tic54x
  42. | Tic6x
  43. | Tic80
  44. | V850
  45. | Arc
  46. | M32c
  47. | M32r
  48. | Mn10200
  49. | Mn10300
  50. | Fr30
  51. | Frv
  52. | Moxie
  53. | Mcore
  54. | Mep
  55. | Ia64
  56. | Ip2k
  57. | Iq2000
  58. | Mt
  59. | Pj
  60. | Avr
  61. | Bfin
  62. | Cr16
  63. | Cr16c
  64. | Crx
  65. | Cris
  66. | Rx
  67. | S390
  68. | Score
  69. | Openrisc
  70. | Mmix
  71. | Xstormy16
  72. | Msp430
  73. | Xc16x
  74. | Xtensa
  75. | Z80
  76. | Lm32
  77. | Microblaze
  78. | Last

Type definitions from BFD library.

Note: this definitions are taken from a correspoind libtrace/arch.hpp header file and doesn't correspond to a most recent version of the BFD library.

A enum X_Y_Z in general maps to X.Y.Z constructor, with the following caveats:

  • X,Y and Z are capitalized
  • sometimes, BFD break there own naming scheme, so X.Y sometimes maps to X._.Y, e.g., bfd_mach_arm maps to Bfd.Mach.Arm.Arm, c.f., a more correct bfd_mach_i386_i386, that maps to Bfd.Mach.I386.I386

The enum processor will derive the following functions:

  • to_enum : t -> int
  • of_enum : int -> t option
  • max, min
val all : t list
val unknown : t
val obscure : t
val m68k : t
val vax : t
val i960 : t
val or32 : t
val sparc : t
val spu : t
val mips : t
val i386 : t
val l1om : t
val we32k : t
val tahoe : t
val i860 : t
val i370 : t
val romp : t
val convex : t
val m88k : t
val m98k : t
val pyramid : t
val h8300 : t
val pdp11 : t
val plugin : t
val powerpc : t
val rs6000 : t
val hppa : t
val d10v : t
val d30v : t
val dlx : t
val m68hc11 : t
val m68hc12 : t
val z8k : t
val h8500 : t
val sh : t
val alpha : t
val arm : t
val ns32k : t
val w65 : t
val tic30 : t
val tic4x : t
val tic54x : t
val tic6x : t
val tic80 : t
val v850 : t
val arc : t
val m32c : t
val m32r : t
val mn10200 : t
val mn10300 : t
val fr30 : t
val frv : t
val moxie : t
val mcore : t
val mep : t
val ia64 : t
val ip2k : t
val iq2000 : t
val mt : t
val pj : t
val avr : t
val bfin : t
val cr16 : t
val cr16c : t
val crx : t
val cris : t
val rx : t
val s390 : t
val score : t
val openrisc : t
val mmix : t
val xstormy16 : t
val msp430 : t
val xc16x : t
val xtensa : t
val z80 : t
val lm32 : t
val microblaze : t
val last : t
module Variants : sig ... end
include sig ... end
val to_enum : t -> int
val of_enum : int -> t option
val max : int
val min : int
OCaml

Innovation. Community. Security.