
www.Usenet.com
| <-- __Chronological__ --> | <-- __Thread__ --> |
Plugh! <[EMAIL PROTECTED]> wrote: > >then that b := (y => 5, x => a.x, buf => a.buf); does actually block >copy the buf from a to b. But can anyone tell me how many clock >cycles this would take? It should not do a block copy if it's written properly (and doing call by reference and not call by value). You can tell this because if you make a change in the block in a subroutine, that change is preserved upon return. >It is my contention that it is negligible and that there are many >better places for us to optimize code, but unless I can prove it by >rewriting the code, which could take weeks, I am stuck. Use the debugger and watch what the code does when it executes. If you are using even something like gdb, you should be able to watch the actual assembler generated by the compiler and see what it does. Totalview is even better about this. --scott -- "C'est un Nagra. C'est suisse, et tres, tres precis."
| <-- __Chronological__ --> | <-- __Thread__ --> |