Number of Logic ID
Posted 17 April 2002 - 04:37 AM
My customer has a function which it has PRO-IV logic up to 227 and when the function is regened, there is an PRO-IV regen error saying the the number of logic is exceed. Does anyone know why it stops at 227?
Posted 17 April 2002 - 06:19 AM
This includes Global Logics. So you need to count the total number of logics.
To make things more difficult Superlayer generates additional logics and global logics at the PRO-IV level, so you would need to analyse the Function at the PRO-IV level to discover how many additional logics are actually used.
Posted 17 April 2002 - 07:07 AM
Will this be possible that during SL regen, system tries to generate a number of logic (maybe from global function) and found that there is not enough logic id (for example global function needs 30 logic and the current logic id is 227), so it stops and we see 227 in PROIV?
Posted 17 April 2002 - 11:40 AM
One option to reduce the number of logics is to change any lookup windows that use logics to global windows,
ie a window on a currency field etc.
to reduce logics used.
Posted 17 April 2002 - 08:13 PM
Are you sure you are allowing for ALL the global logics you may be calling - ie. glogic called by other glogic (to arbitrary depth)...
That can take quite a bit to follow through to the bitter end so your customer probably only counts local logic.
Posted 18 April 2002 - 12:06 AM
Just my thought, there is a superlayer global logic with number of logic > 30 and when regen, since the current logic for the calling function is 227, the system is not going to embed this global logic at all (as 227 + 30 will be greater than 255), therefore he got regen error but PRO-IV spec of the calling function just has 227 logic. Will this be possible?
Posted 18 April 2002 - 08:36 AM
I don't know what you mean when you say 'my customer counts the Pro-IV spec', you need to be a bit more precise.
To emphasise: actual logic IDs (the 3-digit numbers you see on the screen) are irrelevant, what matters is the number of distinct logic routines. As far as I know, Pro-IV has only 255 'slots' internally, each of which can be occupied by a local logic (with a 3-digit ID) or a global logic.
Posted 18 April 2002 - 09:01 AM
Posted 18 April 2002 - 06:48 PM
Gen writes binary code into genfile.pro which is read and interpreted by the Pro-IV kernel when you execute a function. It's a very similar idea to a Java compiler creating bytecode which is interpreted by the Java virtual machine.
Historically Pro-IV used to call this arrangement 'table-driven' but I see they've started using the term virtual machine in some cases as people presumably understand that more readily now. For some reason people are reluctant to call an interpreter an interpreter!
In fact some would say Pro-IV missed an opportunity to BE Java
Posted 23 April 2002 - 01:15 PM
From the errors I have seen, I am not completely sure if the SL regen completely rewrites the PRO-IV code or if it modifies the required pieces. Does anyone know the answer to this?
Posted 23 April 2002 - 09:03 PM
SL does add in a load of its own internal code, including a number of global logics. This may well account for the 227/255 difference that Vol Yip is wondering about.
Reply to this topic
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users