|
" Hello Scott, You wrote: >Ummm... why would Z-Add be more efficient than MOVE? That seems odd to >me. Math is slower than just moving bytes around... Once upon a time .... a really, really, really, really, long time ago ... probably before the S/38 (or possibly on early S/38 releases) I believe MOVE and Z-ADD did generate different code -- thus giving rise to the current myth that MOVE is 'more efficient' than Z-ADD (or vice-versa depending on whom you talk to). However the RPG III/400 compiler generates the same underlying MI code regardless of MOVE or Z-ADD -- they both result in a Copy Numeric Value (CPYNV). No maths involved at all. I see little reason to believe the ILE compiler behaves differently. You can use SST to see the PowerPC instructions generated since it is a little difficult to see the w-code. But even so, my view has always been character op-codes for character results, numeric op-codes for numeric results, indicator op-codes for indicator results. This bloody discussion ..... again ..... :) Regards, Simon Coulter. «»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«» «» FlyByNight Software AS/400 Technical Specialists «» «» Eclipse the competition - run your business on an IBM AS/400. «» «» «» «» Phone: +61 3 9419 0175 Mobile: +61 0411 091 400 «» «» Fax: +61 3 9419 0175 mailto: shc@flybynight.com.au «» «» «» «» Windoze should not be open at Warp speed. «» «»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«» +--- | 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-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.