| ??? 08/12/03 07:54 Read: times |
#52471 - assembler was needed to learn C ! Responding to: ???'s previous message |
Mostly I have seen, that experienced programmers from the UNIX or Windows world are totally unable to build even small applications on a microcontroller.
E.g. a simple program to switch 8 relays was built with 8 variables to represent the state of every relay. These are not defined as "bit" but as "signed int" ! The result: Almost all ressources are gulped already after the first 10 lines of the whole project. Thus assembler experience was needed to program in C reasonably effective ! Only then you can understand the listing and why one line of C generate one byte of code but the other line of C generate more than 100 assembler bytes. Peter |



