package jasmin
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
Compiler for High-Assurance and High-Speed Cryptography
Install
dune-project
Dependency
Authors
Maintainers
Sources
jasmin-compiler-v2025.06.2.tar.bz2
sha256=aa0d21f532c1560a0939244cfd1c8414ba2b42c9d1403960f458500446cb1ebb
doc/src/jasmin.jasmin/printASM.ml.html
Source file printASM.ml
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 63 64 65open Prog open Utils open PrintCommon open Arch_decl type asm_element = | Header of string * string list | Label of string | Dwarf of string (* Debug info in std dwarf format*) | Instr of string * string list | Comment of string | Bytes of string list let iwidth = 4 type asm = asm_element list let pp_header fmt name params = match params with | [] -> Format.fprintf fmt "\t%s" name | _ -> Format.fprintf fmt "\t%-*s\t%s" iwidth name (String.concat ", " params) let pp_label fmt name = Format.fprintf fmt "%s:" name let pp_instr fmt name params = match params with | [] -> Format.fprintf fmt "\t%s" name (* In case there is no params, we do not print a tab*) | _ -> Format.fprintf fmt "\t%-*s\t%s" iwidth name (String.concat ", " params) let pp_comment fmt comment = Format.fprintf fmt "// %s" comment let pp_bytes fmt = List.iteri (fun i byte -> let pfx = i mod 16 == 0 in Format.fprintf fmt "%s%s%s" (if pfx && i > 0 then "\n" else "") (if pfx then "\t.byte\t" else ", ") byte ) let pp_dwarf fmt (dwarf: string) = Format.fprintf fmt "\t%s" dwarf let pp_asm_element fmt asm_element = match asm_element with | Header (name, params) -> pp_header fmt name params | Label name -> pp_label fmt name | Dwarf locs -> pp_dwarf fmt locs | Instr (name, params) -> pp_instr fmt name params | Comment content -> pp_comment fmt content | Bytes data -> pp_bytes fmt data let pp_asm_line fmt = Format.fprintf fmt "%a\n%!" pp_asm_element let pp_asm fmt asm = List.iter (pp_asm_line fmt) asm
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>