× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



I refer to an object descriptor whose content can be queried at execution
time.  It is used to verify the properties of parameters passed between
modules when a dynamic call is used.  It requires CPU cycles to use.

This concept is similar to the static checking performed by the link-editor
or module binder but performed dynamically at each call, not statically at
compile time.

Richard Jackson
mailto:richardjackson@richardjackson.net
www.richardjacksonltd.com
Voice: 1 (303) 808-8058
Fax:   1 (303) 663-4325

-----Original Message-----
From: owner-rpg400-l@midrange.com [mailto:owner-rpg400-l@midrange.com]On
Behalf Of James David Rich
Sent: Friday, July 14, 2000 3:39 PM
To: RPG400-L@midrange.com
Subject: RE: RPG/400 pgm strange behavior


On Thu, 13 Jul 2000, Richard Jackson wrote:

> I think that ILE includes the concept of a self-describing parameter.
That
> is a parameter that contains its length, type, and attributes in a place
> where all languages can find them.  Loading these independent descriptors
> takes machine cycles that many of us aren't willing to pay.  So, if I call
> your program with the right number of parameters but without the
> descriptors, your program doesn't know what it is getting.  I don't want
> that to change because I want high-performance calls.

Huh???  Parameter checking is done at *compile* time.  The descriptors are
built into the data type (int a, char *string, zoned decimal 5,1).  When
something is compiled and linked into an executable parameters are
checked.  The linking stage removes references to outside objects and
binds stuff together into one object.  So a call doesn't need to check
parameters anymore.  A call just becomes an instruction to run from
another spot in the stack.  No loading, no checking, no cycles.  Of course
this is only with ILE and only when calling bound modules - something
like:

C               eval    err = my_function(parm1:parm2)

James Rich
james@dansfoods.com

+---
| This is the RPG/400 Mailing List!
| To submit a new message, send your mail to RPG400-L@midrange.com.
| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
| To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator:
david@midrange.com
+---

+---
| This is the RPG/400 Mailing List!
| To submit a new message, send your mail to RPG400-L@midrange.com.
| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
| To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.