Post Reply 
Scientific RPN Calculator (with ATTINY85)
03-15-2018, 01:47 PM
Post: #35
RE: Scientific RPN Calculator (with ATTINY85)
Hello pier4r!

In principle you are right.

It seems that the "big" if/elseif structure (I had a "hungry" switch/case before) is less "hungry" but still hungry.

So it is smaller to check in one ifelse some several functions (ie trigonometric) and decide (in a local if/ifelse structure) later which of all this options applies. One advantage of this behavior is to calculate some common calculations and save the results in local variables.
The readability suffers and it surely costs speed but it saves bytes ...

Regards
deetee
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Scientific RPN Calculator (with ATTINY85) - deetee - 03-15-2018 01:47 PM



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