??? 07/27/06 10:37 Read: times |
#121154 - contra-example for 8051/AVR Responding to: ???'s previous message |
An implementation of a particular block cipher called sea, in '51 and AVR asm. The latter is a result of a manual translation from the former, compare both files and you will see it immediately.
Note, that this is a bad example for my point (just an illustration for how easy or difficult the "mechanical translation" is), as this is a routine with almost no "hardware" or I/O dependency, so it would present no work in C - as long as the particular C compiler would not surprise you with problems I described above (no rules for int, sign extension). I repeat my point: the "rewriting all lines" is almost a mechanical work - it's easy if you are familiar with both asms (which is a natural requirement if you use asm at all). The point is in identifying and solving the "hardware dependencies", and that's a similar task both for asm and C. Jan Waclawek |
Topic | Author | Date |
How long we see 8051 | 01/01/70 00:00 | |
unofficial history of 8051 | 01/01/70 00:00 | |
History, or prediction? | 01/01/70 00:00 | |
It seems to gain, not lose | 01/01/70 00:00 | |
Does it matter? | 01/01/70 00:00 | |
Double negative? | 01/01/70 00:00 | |
to C or not to C | 01/01/70 00:00 | |
Defintely 'C'! | 01/01/70 00:00 | |
yeah, let's flame! | 01/01/70 00:00 | |
Defintely 'C'! | 01/01/70 00:00 | |
arguments | 01/01/70 00:00 | |
An example for 8051/AVR | 01/01/70 00:00 | |
contra-example for 8051/AVR | 01/01/70 00:00 | |
A slight mistake | 01/01/70 00:00 | |
stdint.h | 01/01/70 00:00 | |
That's your trouble, then! | 01/01/70 00:00 | |
Compiler independant | 01/01/70 00:00 | |
C is not better | 01/01/70 00:00 | |
bringing 2 togethert | 01/01/70 00:00 | |
Opening pandora's box | 01/01/70 00:00 | |
Learning C | 01/01/70 00:00 | |
for a beginner ...![]() | 01/01/70 00:00 | |
are You sure? | 01/01/70 00:00 | |
Portability and scars | 01/01/70 00:00 | |
I'm an ASM Guru but | 01/01/70 00:00 | |
why discuss the rare exception tha same apply | 01/01/70 00:00 |