IP Library Granted Patent US 7,367,019
Granted Patent B2
US 7,367,019 · App. 10/942,428 · Granted Apr 29, 2008

Parameter management using compiler directives

View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 7,367,019
App. No.
10/942,428
Granted
Apr 29, 2008
Kind
B2
Abstract

A method, system, architecture and apparatus for managing program function parameters using compiler directives. A parameter management system can include a compiler coupled to a primary symbol-type dictionary and a supplemental symbol-type dictionary containing parameter data for specific function calls of corresponding generic type functions. Notably, directive processing logic can be configured both to populate the supplemental symbol-type dictionary based upon processor directives embedded in source code, and also to substitute specific function calls for generic function calls in the source code as specified in the supplemental symbol-type dictionary.

Claims (13)

1. A parameter management method comprising the steps of:

detecting a compiler directive disposed in source code;

extracting a generic function name, a specific function name and one or more parameter data types from said compiler directive;

populating a supplemental symbol-type dictionary with said one or more parameter data types extracted from said compiler directive, wherein each of said one or more parameter data types in said supplemental symbol-type dictionary are associated with a specific function call of a corresponding generic type function based upon said compiler directive disposed in said source code;

locating in said source code a generic function call having said generic function name;

substituting in said source code said specific function call having said specific function name for said generic function call by matching a parameter data type provided in said generic function call with a parameter data type populated in said supplemental symbol-type dictionary associated with said specific function call; and

compiling said source code.

2. The method of claim 1 , wherein said extracting step further comprises the step of extracting a return data type, and wherein said populating step further comprises the step of populating said supplemental symbol-type dictionary with said return data type.

3. The method of claim 1 , wherein said extracting step further comprises the step of extracting at least one constraining condition for said one or more parameter data types, and wherein said populating step further comprises the step of populating said supplemental symbol-type dictionary with said constraining condition.

4. The method of claim 3 , further comprising the step of enforcing said constraining condition for said one or more parameter data types.

5. The method of claim 3 , further comprising the step of inserting an assertion in said source code to enforce said constraining condition for said one or more parameter data types.

6. The method of claim 3 , further comprising the step of invoking a built-in function based upon said constraining condition.

7. The method of claim 3 , further comprising the step of optimizing said source code based upon said constraining condition.

Assignments (3)
CHANGE OF NAME Recorded Dec 20, 2021
From: FACEBOOK, INC.
To: META PLATFORMS, INC.
Reel/Frame 058553/0802 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Apr 4, 2012
From: INTERNATIONAL BUSINESS MACHINES CORPORATION
To: FACEBOOK, INC.
Reel/Frame 027991/0473 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Oct 6, 2004
From: MAK, YING CHAU RAYMOND; CHEN, WANG DONG; LINDSAY, LARRY ALEXANDER
To: INTERNATIONAL BUSINESS MACHINES CORPORATION
Reel/Frame 015222/0743 →