RSS feed [root] /weblog /c /languages




login:

password:

title search:




 

Fri Apr 23 01:53:10 HKT 2010

c



(google search) (amazon search) second
download here

Fri Apr 23 01:53:10 HKT 2010 From /weblog/languages/c

system


Give hint to kernal about how use swap memory - http://linux.die.net/man/2/madvise

Recursive ls - http://synesis.com.au/software/recls/

Socket programming tutorial - http://www.codedanger.com/caglar/?p=210

Discussion about making flush() reliable - http://groups.google.com[..]wse_thread/thread/71da1187ec3b0445?hl=en

(google search) (amazon search)


Sat Apr 17 18:30:40 HKT 2010 From /weblog/languages/c

misc


Interesting idea, integrate C and lisp - http://voodoo-slide.blogspot.com/2010/01/amplifying-c.html

How to prevent code duplication in C - http://groups.google.com[..]read/thread/b4d029524579944e?hl=en&pli=1

Why need header - http://stackoverflow.com[..]7/why-does-c-need-a-separate-header-file

How to monitor file usage - http://www.thegeekstuff.com/2010/04/inotify-c-program-example

(google search) (amazon search)


Thu Jan 21 01:18:27 HKT 2010 From /weblog/languages/c

concurrency


Comparing OpenMP and Intel TBB - http://www.ddj.com[..]UQSNDLPCKHSCJUNN2JVN?articleID=214303519

Tutorial about TBB - http://software.intel.com[..]es-with-intel-threading-building-blocks/

Multi-thread optimzated malloc - http://groups.google.com[..]wse_thread/thread/c1ec1fa08c744a8c?hl=en

Introduction to 2 static analysis tool to check OpenMP potential issue, like racing condition - http://software.intel.com[..]tudio-vivamp-and-intel-cc-parallel-lint/

Light weigth lock provide by Linux kernal - http://lwn.net/Articles/360699/

http://software.intel.com[..]uilding-blocks-openmp-or-native-threads/

(google search) (amazon search)


Mon Jan 11 17:54:20 HKT 2010 From /weblog/languages/c

cpp


How to embed script in C++ - http://dobbscodetalk.com[..]ing-Language-in-CPlusPlus.html&Itemid=29

Is CPP that crap? http://lwn.net/Articles/249460/

lint for c++ - http://groups.google.com[..]wse_thread/thread/b895a69d84ff909d?pli=1

CUDA Data Parallel Primitives Library - http://www.ddj.com[..]ept_url=/hpc-high-performance-computing/

CUDA tutorial - http://www.ddj.com/architect/207200659

http://www.ddj.com/cpp/archives.jhtml

Namespace tutorial - http://www.dreamincode.net/forums/showtopic59841.htm

http://loadcode.blogspot.com/2009/11/advantages-of-c-over-c.html

(google search) (amazon search)


Mon Jul 06 03:17:41 HKT 2009 From /weblog/languages/c

compiler


Template variable name lookup explain - http://groups.google.com[..]+/browse_thread/thread/e8755b9cb8f0fd61#



(google search) (amazon search)


Thu Jun 11 02:02:12 HKT 2009 From /weblog/languages/c

optimization


Optimizing Pixomatic for x86 Processors part II

http://www.ddj.com/architect/184405765
http://www.ddj.com/184405807
http://www.ddj.com/184405848
http://www.home.comcast.net[..]tom_forsyth/papers/pixomatic_gdc2004.ppt

(google search) (amazon search)


Fri Mar 06 02:15:08 HKT 2009 From /weblog/languages/c

profiler


gprof - http://www.ibm.com/developerworks/library/l-gnuprof.html

(google search) (amazon search)


Tue Feb 17 10:29:23 HKT 2009 From /weblog/languages/c

memory issue


We have a process running fine for several years and recently have core dump everytime starting it up. here is the stacktrace:

(gdb) backtrace
#0 0xfe34251c in realfree () from /lib/libc.so.1
#1 0xfe342e28 in cleanfree () from /lib/libc.so.1
#2 0xfe341f5c in _malloc_unlocked () from /lib/libc.so.1
#3 0xfe341e50 in malloc () from /lib/libc.so.1
#4 0xfe38f534 in _findbuf () from /lib/libc.so.1
#5 0xfe384f38 in _doprnt () from /lib/libc.so.1
#6 0xfe3886fc in fprintf () from /lib/libc.so.1
#7 0x164f64 in _ZN7LogBook8WriteLogEPcS0_i (this=, pType=0x5c00e8 "INFO",
pMsg=0x6b0b14 "main. Database=XXXXXX. Performing Login to XXXX. user=SYSTEM.", nFile=0) at Util.cpp:164
#8 0x164e28 in _ZN7LogBook9PromptLogEPciS0_i (this=, pType=0x5c00e8 "INFO",
nType=3, pMsg=0x0, nFile=0) at Util.cpp:136
#9 0x14a364 in main (argc=3, argv=0xffbef5bc) at XXXX.cpp:385
(gdb)

Eventaully we found out the reason is the class LogBook is singleton, and it reuse few char* buffer internally, without delete and new in between, after adding delete and new for transaction, the process run correctly, as a rule of thumb, singleton is evil for most of the cases.

(google search) (amazon search)


Fri May 23 01:30:30 HKT 2008 From /weblog/languages/c

cuda


C library that allow programmer use the power of NVIDIA GPUs

http://www.nvidia.com/object/cuda_home.html
http://www.ddj.com[..]articleID=207200659&dept_url=/architect/
http://www.ddj.com[..]ept_url=/hpc-high-performance-computing/
http://www.ddj.com[..]ept_url=/hpc-high-performance-computing/

(google search) (amazon search)


Fri Nov 18 14:49:30 HKT 2005 From /weblog/languages

computer language rating


Sites that rate popularity of difference computer language

http://www.tiobe.com/tpci.htm
http://dada.perl.it/shootout/
http://www.99-bottles-of-beer.net/



(google search) (amazon search)