Linker optimization for compiled object oriented programs

G - Physics – 06 – F

Patent

Rate now

  [ 0.00 ] – not rated yet Voters 0   Comments 0

Details

G06F 9/45 (2006.01) G06F 9/42 (2006.01)

Patent

CA 2171898

When compiling and linking programs using an object oriented language and virtual functions addressed by virtual function tables, the compiled and linked program may often include functions that are not used. The compiler is unable todetermine whether a particular virtual function selected by it can actually be called and the linker must link the function into the program to satisfy the reference from the virtual function table. The present invention solves this problem. The compiler tags each defined virtual function with a code identifying it as a member of a group of related virtual functions. The compiler also tags each virtual function call to identify which group or groups of related virtual functions are candidates for invocation by the virtual function call. The linker combines the two codes to identify which defined virtual functions are not candidates for invocation by any virtualfunction call. The linker then omits those non-candidate virtual functions from the link if all references to them were from virtual function tables.

€ la compilation et l'édition de liens d'un programme en langage orienté objet et des fonctions virtuelles référencées dans une table de fonctions, il arrive souvent que les programmes contiennent des fonctions qui ne sont pas utilisées. Le compilateur est incapable de déterminer si une fonction virtuelle en particulier sélectionnée peut vraiment être appelée et l'éditeur de lien doit lier la fonction au programme pour satisfaire la référence à la table de références virtuelles. La présente invention apporte une solution à ce problème. Le compilateur marque chaque fonction virtuelle définie avec un code l'identifiant comme membre d'un groupe de fonctions virtuelles connexes. Le compilateur marque également chaque appel à une fonction virtuelle pour identifier le ou les groupes de fonctions virtuelles pourraient être appelés par la fonction virtuelle. L'éditeur de liens combine les deux codes pour identifier quelles fonctions virtuelles définies ne sont pas appelées par quelque appel de fonction virtuelle. L'éditeur de lien omet ensuite ces fonctions virtuelles qui ne seront pas appelées des liens si toutes les références faites à ces fonctions provenaient des tables de fonctions virtuelles.

LandOfFree

Say what you really think

Search LandOfFree.com for Canadian inventors and patents. Rate them and share your experience with other people.

Rating

Linker optimization for compiled object oriented programs does not yet have a rating. At this time, there are no reviews or comments for this patent.

If you have personal experience with Linker optimization for compiled object oriented programs, we encourage you to share that experience with our LandOfFree.com community. Your opinion is very important and Linker optimization for compiled object oriented programs will most certainly appreciate the feedback.

Rate now

     

Profile ID: LFCA-PAI-O-2034510

  Search
All data on this website is collected from public sources. Our data reflects the most accurate information available at the time of publication.