View previous topic :: View next topic
|
Author |
Message |
mf_user Currently Banned New User
Joined: 05 Jan 2006 Posts: 47
|
|
|
|
Hi,
When to use COMP SYNC on a variable? Can it be used on group item also?
Thanks. |
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
Hi mf,
You get better performance when it's used for comp (but not comp-3) items used in arith operations.
To get an idea of how much you might gain per instr execution comple your pgm w/the LIST,NOOFF compiler opts. Code a test by uning SYNC for a comp item and don't use it for another. Create the same arith stmt for each, then check the compile listing and compare the generated assembler instructions.
You can use it for group items, but remember 01 items are SYNCed automatically. Not sure if 77s are. |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
Back to top |
|
|
|