| Per Westermark 07/02/09 21:26 Read: 164 times Sweden |
#166680 - Depends a lot on processor and compiler Responding to: Andy Neil's previous message |
The 8051 instruction set is tiny, so it is highly likely that a compiler has support for using any assembler instruction (if the program needs it).
For some CISC processor architectures, there can be so many instructions and addressing modes that a lot of compilers will settle for using a subset. An example of a instruction often not used is a BCD adjust instruction, i.e. an instruction specifically intended to use when adding two BCD-encoded numbers together, to make sure that the sum will also be a BCD number. C code does not have a way of declaring that a variable should use BCD format, so the C compiler will have a hard time figuring out that the BCD adjust instruction could be used. |
| Topic | Author | Date |
| c compilers | Karim Fallahzadeh | 07/02/09 14:17 |
| Didnt get it... | MUNISH KUMAR | 07/02/09 14:41 |
| Why do you ask? | Andy Neil | 07/02/09 16:50 |
| Depends a lot on processor and compiler | Per Westermark | 07/02/09 21:26 |
| Other examples: | Christoph Franck | 07/03/09 03:16 |
| Not necessarily true | Andy Neil | 07/03/09 03:47 |
| Hand-crafted libraries | Per Westermark | 07/03/09 04:12 |
| I don't see this as compiler output | Andy Neil | 07/03/09 04:18 |
Seemed to be quite explicit question | Per Westermark | 07/03/09 04:42 |



