Skip to content

Instantly share code, notes, and snippets.

@alexhumphreys
alexhumphreys / CodeGen.idr
Last active November 27, 2020 08:00
minimal example to show weirdly different generated code sizes depending on case ordering
data Value
= VLambda
| VHLam
| VPi
| VHPi String Value (Value -> Value)
| VEquivalent Value Value
| VAssert Value
| VConst
| VBool
| VBoolLit
@alexhumphreys
alexhumphreys / rust-native.json
Created September 9, 2016 08:38
tmp/work/x86_64-linux/rust-native/1.10.0-r0/sysroot-destdir/opt/pro/poky/build/tmp/sysroots/x86_64-linux/usr/lib/rustlib/x86_64-linux.json
{
"executables": true,
"morestack": true,
"dynamic-linking": true,
"position-independent-executables": true,
"linker-is-gnu": true,
"os": "linux",
"linker": "gcc",
"data-layout": "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128",
"llvm-target": "x86_64-unknown-linux-gnu",
@alexhumphreys
alexhumphreys / rust-cross.json
Created September 9, 2016 08:37
tmp/work/x86_64-linux/rust-cross-x86_64/1.10.0-r0/sysroot-destdir/opt/pro/poky/build/tmp/sysroots/x86_64-linux/usr/lib/rustlib/x86_64-linux.json
{
"executables": true,
"morestack": true,
"dynamic-linking": true,
"position-independent-executables": true,
"linker-is-gnu": true,
"os": "linux",
"linker": "gcc",
"data-layout": "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128",
"llvm-target": "x86_64-unknown-linux-gnu",