× 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-09-17, at 11:52 AM, rpg400-l-request@xxxxxxxxxxxx wrote:

1. Is there any difference between what is generated at a low-level (W-code
or whatever) for "A = A + B" and "A += B"? I assume not, and that the
difference is merely in the RPG, but I don't know whether the compiler can
make any optimization based on the second example.

I do not believe there is any difference - code gen should be identical. Any optimization that applied would be equally applicable in both cases and would depend on what happened before/next.



2. If one uses %Trim on a left-adjusted field (so there are no left spaces
to trim), what's the actual run-time overhead? I'm guessing there are a
couple of lines of code which get executed, but it can't honestly be much,
can it? Sure, there's still the right-trimming to be done, but is there a
noticeable difference between using %Trim and %TrimR on a left-adjusted
field,

Minuscule admittedly set loop start address, load first char, break out of loop. But also I thing one should use the version that documents what you expect - if I expect there to be no spaces then I think %TrimR indicates that.


Jon Paris

www.partner400.com
www.SystemiDeveloper.com





As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.