Post Reply 
How many elements in a CASE ?
02-26-2016, 06:49 AM
Post: #11
RE: How many elements in a CASE ?
Hello,

C/C++ is typed, so when you do a switch/case, the compiler knows what the input type is, and the case are constant. This allows the compiler to generate a jump table...

in HPPL, the variables are not typed, and the case statements can be much broader... This forces a sequential scanning of the cases.

Here, the internal 'counter' is limited to 8 bits, and each case takes 2 items: the test part and the evaluate if ok part. Therefore the limit...

It was thought at the time that the 127 limit would not be a problem as a program that needed more was most likely not correctly implemented (for the structure of HPPL).

Cyrille

Although I work for the HP calculator group, the views and opinions I post here are my own. I do not speak for HP.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
How many elements in a CASE ? - smp - 02-22-2016, 12:18 PM
RE: How many elements in a CASE ? - smp - 02-22-2016, 11:02 PM
RE: How many elements in a CASE ? - smp - 02-23-2016, 08:25 PM
RE: How many elements in a CASE ? - smp - 02-23-2016, 11:31 PM
RE: How many elements in a CASE ? - smp - 02-24-2016, 12:40 PM
RE: How many elements in a CASE ? - smp - 02-29-2016, 01:40 AM
RE: How many elements in a CASE ? - cyrille de brébisson - 02-26-2016 06:49 AM



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