Object File Cross-Reference System

As a professional C programmer, I’ve had to deal with extremely large programs. Part of this work involved integration of software whose components were made in Finland, the United States, China, and Korea. Needless to say, sometimes the parts don’t go together smoothly.

One common problem I have to deal with is symbol conflicts that occur at link time. Frequently, I will get duplicate symbols or undefined symbols.

Using grep to search through several thousand files is prohibitively slow, so I devised the object cross-referencing system. It consists of two parts: the oxgen.pl program that generates the object cross-reference and the ox.pl program that queries it.

ox-gen.pl

The job of the oxgen.pl program ...

Get Perl for C Programmers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.