×

Efficient stack utilization for compiling and executing nested if-else constructs in a vector data processing system

  • US 5,790,854 A
  • Filed: 08/03/1995
  • Issued: 08/04/1998
  • Est. Priority Date: 03/31/1993
  • Status: Expired due to Fees
First Claim
Patent Images

1. A method for compiling a nested conditional construct for a vector data processor, comprising the computer-implemented steps of:

  • providing a first program for the vector data processor in a first software language, the program including the nested conditional construct;

    initiating translation of the first program for the vector data processor from the first software language to a second program in a second software language by a data processor;

    recognizing the nested conditional construct in the first program;

    translating a first portion of the first program for the vector data processor from the first software language to a first portion of the second program in the second software language, the first portion of the second program determining when a condition in the nested conditional construct is true and when the condition in the nested conditional construct is false;

    providing a second portion of the second program wherein a first vector instruction set stores a first state of each of a plurality of processing elements of the vector data processor in a first vector register when the condition in the nested conditional construct is true;

    providing a third portion of the second program wherein a second vector instruction set deactivates each of the plurality of processing elements for which the nested conditional construct is false;

    providing a fourth portion of the software program wherein a third vector instruction set which logically combines a second state of each of the plurality of processing elements with the first state of each of the plurality of processing elements of the vector data processor; and

    providing a fifth portion of the software program wherein a fourth vector instruction set retrieves a first register value from the first vector register to provide a third state for each of the plurality of processing elements of the vector data processor.

View all claims
  • 6 Assignments
Timeline View
Assignment View
    ×
    ×