2012년 2월 17일 금요일

llvm Kaleidoscope ch3

I have been studying llvm in following http://llvm.org/docs/tutorial/LangImpl3.html.

In compiling example on ch3, i met below errors.


ch3.cpp:401:18: error: no matching member function for call to 'CreateCall'
  return Builder.CreateCall(CalleeF, ArgsV, "calltmp");

ch3.cpp:406:22: error: no matching constructor for initialization of
      'std::vector<Type *>'
  std::vector<Type*> Doubles(Args.size(),Type::getDoubleTy(getGlobalContext()));
                     ^       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

solution
--------------------------------------------------------

 return Builder.CreateCall(CalleeF, ArgsV.begin(), ArgsV.end(), "calltmp"); 

 std::vector<const Type *> Doubles(Args.size(), Type::getDoubleTy(getGlobalContext()));


2012년 2월 14일 화요일

llvm-gcc: invalid bitcode signature

ubuntu 11.10
llvm and llvm-gcc have been installed by ubuntu package ( apt-get install llvm llvm-gcc ). 
llvm-2.8 or llvm-2.9 and llvm-gcc-4.5 were tested.

llvm-gcc hello.c -> ok.
llvm -gcc -O3 -emit-llvm hello.c -c -o hello.b-> ok
but
lli hello.bc -> error : invalid bitcode signature 
In googling, I found below, but it was not useful.

There are two solution.

1. build all of things on your PC not packages, llvm and llvm-gcc. 

2. using llvm-clang , I chosen this option. 
apt-get insatll llvm-clang
llvm-clang ........ -> it's still ok !.


2011년 11월 7일 월요일

Flash-Aware RAID Techniques

Flash-Aware Raid Techniques for Dependable and High-Performance Flash Memory SSD


IEEE Transactions on Computers, page 80~92, 2011
Soojun Im : Sungkyunkwan Univ.
Dongkun Shin : Sungkyunkwan Univ.


Conclusion

Efficient RAID techniques for reliable flash memory SSDs
The delayed parity update technique
Reduces the number of flash memory write operations
The partial parity caching technique
Exploits the implicit redundant data of flash memory
Reduce the number of read operations required to calculate the parity
Reduce GC overheads in flash memory

2011년 11월 4일 금요일

source insight in linux

How to use source insight in linux??

OS : ubuntu 11.04

download source insight
http://sourceinsight.com

trial 30 days or something :)

apt-get install wine
or
install using synaptics

chmod +x sourceinsight.exe

right click on incon of sourceinsight.exe

run on wine !!

how to add file
z: is root directory (/)

enjoy source insight on Linux~~~~


2011년 9월 28일 수요일

동성동본 혼인 신고

검색에 속지 말고 한방에 가는 동성동본 혼인신고 ^^

동성동본에서 의미있는 관계는 부계 모계 즉 어머니 아버지 쪽으로 8촌이내를 말한다.

와이프와 어머니가 동성동본이기 때문에 혼인 신고 전 열심히 구글링을 하였는데

어디 속시원하게 설명한 곳이 없었음.

신빙성 있어보이는 사이트에서 얻은 결과는 혼인신고와 부부가 8촌에 속하지 않는다는 확인서를 제출해야 한다였다.

두 서류를 들고 와이프와 구청에 가서 신고 하려 하니 담당자가 확인서에 대한 언급조차 없더라는 ㅎㅎ.. 낚였음..-> (http://root.or.kr/root/d11.htm)

혼인신고 양식에 보면 아래 동성동본에 8촌이내이냐? 라는 질문이 있는데 단순히 아님이라고 하면 모든 절차가 끝난다.

괜히 이상한테 낚이지 말고 혼인신고 양식만 출력해서 아는 것만 채우고 증인 2명 정보 적은 후

신분증 들고 와이프와 구청으로 갑시다 ~~

시청, 동사무소 머 이런데 안됩니다. ~~

혼인신고 절차 전자정부 안내, 신청서를 누르면 양식 다운됨
http://www.egov.go.kr/main?a=AA020InfoCappViewApp&HighCtgCD=A01004&CappBizCD=12700000050

2011년 9월 19일 월요일

2011년 8월 10일 수요일

로즈벨리 투어

마론펜션의 주인 아주머니 동생이 가이드를 맡아
로즈벨리투어 고고~~ 20 Eur 였던듯.

고대 교회
역시 흥미가 없음 ㅎㅎ




오래된 벽화 .. 이것도 교회

저 안에 사람이 살았다는데..







같이 투어를 하던
우연히 일정이 맞았던 승희의 회사후배와
나중에 회사 로비에서 만난 우리 회사 사람들 ㅎㅎ
세상 참 좁다..

로즈벨리투어의 하이라이트 역광놀이~~


역시 사내커플인 우리가 젤로 역동적이야 ㅎㅎ




일행 모두가 한컷..

그저 즐겁다 ㅎㅎ


석양을 배경으로


신혼부부들이 찍는다는 동굴 ㅎ


저녁으로 피자의 형이라는 피데..

그리고 건강이와 종엽이랑 함께한 저녁 맥주