Compile and execute 32 bits application in 64 bits operating system

October 1st, 2009 mysurface

The world is going towards 64 bits machines and operating system for personal computer, but there are still some libs and software only support 32 bits. Therefore in this transition period, there is a needs to support both 64 bits and 32 bits applications. Lately I been using x86_64 Fedora Linux. There are requirements for […]

Posted in Developer, gcc, Misc | Hits: 230436 | 3 Comments »

Use gprof to check your codes for performance issues

August 29th, 2007 mysurface

By reading the article Speed your code with the GNU profiler from IBM DevelopWorks, I have gain the knowledge of using gprof to easy my work to identify my module’s performance’s bottleneck. Here, I would like to share my experience on how I discover the clog of my codes. Let us first look at the […]

Posted in Developer, gcc, gprof | Hits: 62460 | 13 Comments »

debug a currently running program with GDB

April 9th, 2007 mysurface

Here is a quick tips of GDB. There is a time when I was working on a module that was written in c/c++ hangs in the middle of execution. I have no clue how it happens, and it happens quite rare. I keep guessing and try to feed in more debug print lines to search […]

Posted in Developer, gcc, gdb | Hits: 43552 | 7 Comments »

compile c and c++ source code

January 27th, 2007 mysurface

There are plenty of c and c++ compiler under unix based operating system, but the most famous one should be GNU gcc compiler. A well known open source kernel Linux is compiled by gcc as well. This post is to introduces you how you can use gcc to compile c and c++ source code, if […]

Posted in Developer, g++, gcc | Hits: 158265 | 49 Comments »