Post Reply 
How much memory may a HPPL program use on a G2?
09-23-2023, 11:15 AM (This post was last modified: 09-23-2023 11:21 AM by komame.)
Post: #92
RE: How much memory may a HPPL program use on a G2?
(09-23-2023 06:06 AM)Tyann Wrote:  INC var and DEC var faster than var=var+1 and var=var-1
MUL var,expr and DIV var,expr faster than var=var*expr and var=var/expr
ADD var,expr and SUB var,expr faster than var=var+expr and var=var-expr

It seems to me that such an approach would require passing arguments by reference, which PPL does not support (function arguments are always passed by value). It could probably be simulated somehow, but it would certainly not be a standard approach for PPL. However, the machine code compilation mechanism I mentioned in another thread would be significantly better if there were the possibility of passing arguments by reference and modifying the object "in place" instead of creating a copy in memory. This would provide an additional performance boost.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: How much memory may a HPPL program use on a G2? - komame - 09-23-2023 11:15 AM



User(s) browsing this thread: 1 Guest(s)