|
Jim wrote: >I know in the PC world, anyway, if I optimize something, I can loose some >debug info. That is, if it optimizes 3 lines of code into one line of ASM, >in this case MI I guess, then when debugging things don't step along as >they should. > >So, does the RPG compiler optimize the executable? Or is that either not >possible, or an additional step I need to perform? If the RPG compiler >doesn't optimize my code, then it is a non issue and I can go ahead and >compile with *ALL (since there is practically no size increase over *LIST). The optimization is done by the common back-end used by all AS/400 compilers. The optimizer is quite aggressive and can make a difference in compute-bound applications, especially those written in C. RPG semantics, however, limit the amount of optimization that are possible. This normally isn't that big a deal anyways since most RPG apps are I/O-bound, not compute- bound. Since the most aggressive optimizations don't apply to most RPG programs, debugging is not too badly affected by the optimizations. Cheers! Hans Hans Boldt, ILE RPG Development, IBM Toronto Lab, boldt@ca.ibm.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 mailing list archive is Copyright 1997-2025 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.