File: asm.h

package info (click to toggle)
ocaml 5.3.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 43,124 kB
  • sloc: ml: 355,439; ansic: 51,636; sh: 25,098; asm: 5,413; makefile: 3,673; python: 919; javascript: 273; awk: 253; perl: 59; fortran: 21; cs: 9
file content (62 lines) | stat: -rw-r--r-- 2,695 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/**************************************************************************/
/*                                                                        */
/*                                 OCaml                                  */
/*                                                                        */
/*             Xavier Leroy, projet Gallium, INRIA Rocquencourt           */
/*             Bart Jacobs, KU Leuven                                     */
/*             Tom Kelly, OCaml Labs Consultancy, UK                      */
/*                                                                        */
/*   Copyright 2012 Institut National de Recherche en Informatique et     */
/*     en Automatique.                                                    */
/*                                                                        */
/*   All rights reserved.  This file is distributed under the terms of    */
/*   the GNU Lesser General Public License version 2.1, with the          */
/*   special exception on linking described in the file LICENSE.          */
/*                                                                        */
/**************************************************************************/

/* Call Frame Information directives */

#ifdef ASM_CFI_SUPPORTED
#define CFI_ADJUST(n)           .cfi_adjust_cfa_offset n
#define CFI_DEF_CFA_OFFSET(n)   .cfi_def_cfa_offset n
#define CFI_DEF_CFA_REGISTER(r) .cfi_def_cfa_register r
#define CFI_ENDPROC             .cfi_endproc
#define CFI_OFFSET(r, n)        .cfi_offset r, n
#define CFI_REGISTER(r1, r2)    .cfi_register r1, r2
#define CFI_REMEMBER_STATE      .cfi_remember_state
#define CFI_RESTORE(r)          .cfi_restore r
#define CFI_RESTORE_STATE       .cfi_restore_state
#define CFI_SAME_VALUE(r)       .cfi_same_value r
#define CFI_SIGNAL_FRAME        .cfi_signal_frame
#define CFI_STARTPROC           .cfi_startproc
#else
#define CFI_ADJUST(n)
#define CFI_DEF_CFA_OFFSET(n)
#define CFI_DEF_CFA_REGISTER(r)
#define CFI_ENDPROC
#define CFI_OFFSET(r, n)
#define CFI_REGISTER(r1, r2)
#define CFI_REMEMBER_STATE
#define CFI_RESTORE(r)
#define CFI_RESTORE_STATE
#define CFI_SAME_VALUE(r)
#define CFI_SIGNAL_FRAME
#define CFI_STARTPROC
#endif

/******************************************************************************/
/* DWARF */
/******************************************************************************/

/* These constants are taken from:

     DWARF Debugging Information Format, Version 3
     http://dwarfstd.org/doc/Dwarf3.pdf

 */

#define DW_CFA_def_cfa_expression 0x0f
#define DW_OP_breg                0x70
#define DW_OP_deref               0x06
#define DW_OP_plus_uconst         0x23