Category Archives: C Section

This exclusive C section. Only C related stuff should be discussed here

Creating and linking static and shared libraries

In this post, i will explain how to create, link and access static and shared libraries. Libraries can be created as 1. static library (.a) 2. shared library (.so) Static library (*.a files) – these libraries are linked to application … Continue reading

Posted in C Section | Leave a comment

Debugging application core dump

Quite often, developers need to analyze core dumps generated in customer production system’s to fix the issue. It could so happen that the version of application/patches installed in developer’s machine are different than the one customer has. When the core … Continue reading

Posted in C Section | Leave a comment

Info on PA-RISC processors

Here is bit of insight to versions of PA-RISC architecture. There are three versions of PA-RISC processors 1.0(32 bit), 1.1(32 bit) and 2.0(64 bit). Following link provides more information on all three versions of PA-RISC. http://www.openpa.net/pa-risc_processors.html Now, how can we … Continue reading

Posted in C Section | Leave a comment

I/O operation is very time consuming

I have read that i I/O operation is costly. But to what extent this can effect the application performance ? I was refactoring code in application which had large I/O operation. Result was that after reducing the number of I/O … Continue reading

Posted in C Section | Leave a comment

Issues after Porting applications to 64 bit architecture

Application Binary Interface(ABI) specifies sizes of fundamental types. ABI is hidden from the developer by the compiler. The main limitation of 32-bit programs that push developers to 64-bit programs is the limited address space. A 32-bit program can only address … Continue reading

Posted in C Section | Leave a comment

libc Library

C library has many functions which are not used at all. I read libc documentation and found many useful functions which are not commonly used in day to day programming. If you find the document, do read it, to find … Continue reading

Posted in C Section | Leave a comment

Detecting memory related errors in program

In this posting i will be discussing about various memory related errors and the tools to detect them. Errors which occur due to dynamic memory allocation will show up only when the program is executed. Following are the various kinds … Continue reading

Posted in C Section | Leave a comment