Skip to content

Instantly share code, notes, and snippets.

View sanxiyn's full-sized avatar

Seo Sanghyeon sanxiyn

  • Seoul, South Korea
View GitHub Profile
process 31913
Mapped address spaces:
Start Addr End Addr Size Offset objfile
0x555555554000 0x555555555000 0x1000 0x0 /home/sanxiyn/rust/b/x86_64-unknown-linux-gnu/stage1/bin/rustc
0x555555754000 0x555555755000 0x1000 0x0 /home/sanxiyn/rust/b/x86_64-unknown-linux-gnu/stage1/bin/rustc
0x555555755000 0x555555787000 0x32000 0x0 [heap]
0x7fffd8000000 0x7fffda9c6000 0x29c6000 0x0
0x7fffda9c6000 0x7fffdc000000 0x163a000 0x0
0x7fffdc000000 0x7fffdfdb2000 0x3db2000 0x0
--- arm.filtered.ll 2016-03-12 18:48:02.186454259 +0900
+++ i686.filtered.ll 2016-03-12 18:48:16.522659569 +0900
@@ -1,6 +1,6 @@
-; ModuleID = 'arm.bc'
-target datalayout = "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64"
-target triple = "arm-unknown-linux-gnueabihf"
+; ModuleID = 'i686.bc'
+target datalayout = "e-m:e-p:32:32-f64:32:64-f80:32-n8:16:32-S128"
+target triple = "i686-unknown-linux-gnu"
@sanxiyn
sanxiyn / failed
Created October 16, 2013 12:50
Tests failed
failed [run-pass] run-pass/capture_nil.rs
failed [run-pass] run-pass/cci_capture_clause.rs
failed [run-pass] run-pass/child-outlives-parent.rs
failed [run-pass] run-pass/cleanup-copy-mode.rs
failed [run-pass] run-pass/clone-with-exterior.rs
failed [run-pass] run-pass/comm.rs
failed [run-pass] run-pass/core-run-destroy.rs
failed [run-pass] run-pass/deriving-encodable-decodable.rs
failed [run-pass] run-pass/deriving-rand.rs
failed [run-pass] run-pass/extern-call-deep2.rs
@sanxiyn
sanxiyn / host.sh
Created October 4, 2013 07:38
Weak symbol
#!/bin/sh
gcc -shared -fPIC sub.c -o libhost.so
gcc main.c -L. -lhost -o host
LD_LIBRARY_PATH=. ./host
@sanxiyn
sanxiyn / SSH
Created September 23, 2013 15:34
SSH public key
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDlMgzbZiFoYZAG12L4yTLyijOgu65mhOGWzTen+PfEDuL17/iYw49YOqd/T80z5dEVG6/E26in/Xkamr9NwYs6exxL3nKmRkDUbud8YJFZNwNQQY1UWUo12oRy0aoioBZAU0FJhWMsUFFyna7bgFO/MKxiHBFGiNERpl7iRR8RQ+oO84jZrlgrNX0klwMUFEskUbWFvjMSxpCePbsr9zu2xOiRyDbP8dF8tWnqU8tSJ7f4YzVXBYcjOUV1tBYZwtb5XSS6Oex4uyFOXyLyan/MkHHiY9lFE/qmO3ZVQibGK+OrKdN7QtHXsuOHaUW9kRLTP5k1BLsPSFSKF4RNTMlP sh4.seo@samsung.com
@sanxiyn
sanxiyn / simd_sum.rs
Created July 19, 2013 17:29
SIMD sum
extern mod extra;
fn test_vector() -> ~[f32] {
let mut v = ~[];
for std::uint::range(0, 64) |i| {
v.push(i as f32);
}
v
}
@sanxiyn
sanxiyn / Makefile
Created March 22, 2013 08:26
JSVal and ABI
ifndef ARM
run: libjsval.so js.x64
LD_LIBRARY_PATH=. ./js.x64
else
run: libjsval.so js.arm
endif
clean:
rm -f *.ll *.s *.so *.x64 *.arm
@sanxiyn
sanxiyn / BTC
Created March 9, 2013 06:22
Bitcoin address
1MEVAAwyyrBvmBe5PTVGLePWnZN7D5VrGY
@sanxiyn
sanxiyn / minmax.rs
Created March 5, 2013 18:12
Minimum and Maximum
extern mod std;
fn lt<T: Ord>(a: Option<T>, b: Option<T>) -> bool {
match (a, b) {
(None, None) => false,
(None, Some(_)) => true,
(Some(_), None) => false,
(Some(a), Some(b)) => a < b
}
}
@sanxiyn
sanxiyn / count.rs
Last active December 13, 2015 21:18
Count
extern mod core;
use core::comm;
use core::task;
fn find_max_and_count(list: ~[int]) -> (int, uint) {
let min = list.min();
let max = list.max();
let range = (max - min) as uint;
let mut count = vec::from_elem(range + 1, 0);