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



On 2012/4/6 12:17 PM, Rory Hewitt wrote:
Alan's point is still valid though.

Even if those additional memory requirements (over and above the C
equivalent) provide actual benefits (faster initialization or whatever)
that the C program doesn't have, it would be interesting to know what they
are...


Even if you don't have a cycle module, there's still a lot of stuff that RPG does under the covers related to module initialization and exception handling.

The RPG compiler could possibly be smarter so that it could detect that no operation in the whole module could possibly cause an exception, and that no operation in the whole module needs to use anything done during initialization.

For sure, if you have a module with just NOMAIN, and no procedures at all, the RPG compiler could do a much better job of generating nothing.

But would it be worth it to take the trouble to conditionally generate things that are needed by 99.9999% of RPG modules? Where most (all?) of the .0001% of modules where they aren't needed are toy modules created just to see how much storage RPG is generating into an empty module?

As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.