אתה לא יודע ששחר לא מכיר פקודות בתכנות שהן יותר מ4 אותיות?
בכל מקרה.. למי שעצלן ולא רוצה לקרוא:
Since two very different approaches were taken to implement the PID loop algorithm, it is not surprising that
the performance and code sizes of the two routines differ significantly. The C language version contains
over 1500 bytes, much of which consists of floating point runtime support. Because it carries full floatingpoint
precision and does not use math support hardware, the C version takes approximately 6 milliseconds
to complete the loop. The assembly version contains approximately 1000 bytes, and could be reduced to
about 800 bytes if features added for clarity and experimentation were removed. Because it uses a tailored
arithmetic format and gets a hardware assist from the math coprocessor, the assembly version completes
the loop in approximately 700 microseconds. In both cases, performance could be improved by precomputing
all the results with constant factors.