Live Chat!

Compile and execute 32 bits application in 64 bits operating system

2 votos Vota!!

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 me [...]

Posted in Developer, Misc, gcc | Hits: 157612 | 1 Comment »

Use gprof to check your codes for performance issues

0 votos Vota!!

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 [...]

Posted in Developer, gcc, gprof | Hits: 28663 | 6 Comments »

debug a currently running program with GDB

2 votos Vota!!

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: 18785 | 1 Comment »

compile c and c++ source code

3 votos Vota!!

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: 48683 | 22 Comments »