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



cozzi@xxxxxxxxx wrote:

Hans,
That's all well and good, but...
1) Why is DDS limited to 2 and 4 byte binaries and seems to use the
RPG-like declaration for them (or has that changed?)
2) Why would the timing of int->int copy be slower than Bin->Bin in RPG IV
as was reported here earlier today?


1) DDS is NOT limited to 2 and 4 byte binaries. DDS also supports 8 byte binaries.

2) Why did Steve report faster timings on bin->bin copy compared to int->int copy? First, on a simple "EVAL B1=B2;" copy from binary to binary where both variables have the same size, no conversion happens. In W-Code, we do just a LOD and STR. For an assignment "EVAL I1=I2;", it actually is a little bit more complicated. If I1 and I2 are defined as 20I0, there's a LOD and STR which runs at around the same speed as the binary. However, if the source argument is not 20I0, the compiler emits a "convert to 8-byte integer" instruction first, and that tends to slow things down a little bit. The performance difference disappears with optimization, however.

Cheers! Hans


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.