× 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.



"RPG400-L" <rpg400-l-bounces@xxxxxxxxxxxx> wrote on 01/31/2017 01:00:01
PM:
----- Message from Jeff Young <jyoung0950@xxxxxxxxx> on Tue, 31 Jan
2017 12:03:27 -0500 -----

To:

rpg400-l@xxxxxxxxxxxx, midrange-l@xxxxxxxxxxxx

Subject:

List IRP from RPG compile

Back in the old days, for RPG III using the CRTRPGPGM command, we had an
option for GENOPT(*List) which would list the intermediate
representation
of the program (IRP). While of no importance in actually creating the
program, it gave an insight into what instructions a particular op-code
generated.

I do not see any equivalent option on the CRTBNDRPG command.
Is there any way to get this information any more?

TIA

Jeff Young
Sr. Programmer Analyst

The ILE compilers do generate an intermediate code (p-code IIRC). The idea
is having compilers share some of the same internal logic, but the
compilers do so much more than simply translate your code. They now can
reorder statements for optimization among many other far more advanced
functions that the OPM compilers simply could not do. This is why simply
converting a program from OPM to ILE can yield something in the
neighborhood of a 30 percent performance boost. Someone more knowledgeable
can correct me or speak in greater detail, but I believe you're out of
luck if you want something like the old GENOPT(*LIST) representation.

Michael Quigley
Computer Services
The Way International
www.TheWay.org

As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.