??? 02/18/08 21:14 Read: times |
#151058 - registers??? Responding to: ???'s previous message |
Craig Steiner said:
Structure isn't so much the problem. The problem is you have a limited number of registers and so much of your code is used just loading registers with the right pointers, etc. prior to calling a file system API. It's a lot cleaner to write it in 'C' and let the compiler do that for you. Registers? Who needs registers for parameter passing in '51? This is the same rant as those who call for huge stacks for local variables and parameter passing. Also, you have symbols, aliases, EQUs, macros, whatever. A whole selection of tools. It's just the question of learning how to use them wisely. C is comfortable, I admit, and that comfort does not come for free. Also, it makes you think comfortably - use a lot of buffers, for example ;-) OK, OK, this is the good old asm.vs.HLL flame, nothing less and nothing more. A file system is not better nor worse than any medium-sized project, both approaches are well suitable here. Just a historical example: how do you think THE FAT has been implemented in it's original incarnation, in DOS? JW |
Topic | Author | Date |
File Handling using 8 bit Uc | 01/01/70 00:00 | |
Of course it's possible ... | 01/01/70 00:00 | |
Yes, of course - but in assembler? | 01/01/70 00:00 | |
Agreed | 01/01/70 00:00 | |
why mess? | 01/01/70 00:00 | |
FAT in assembly | 01/01/70 00:00 | |
How did FAT come up? | 01/01/70 00:00 | |
FATs popularity is largely given by... | 01/01/70 00:00 | |
Craig cited it as an example | 01/01/70 00:00 | |
I disagree | 01/01/70 00:00 | |
Asm vs. C | 01/01/70 00:00 | |
registers??? | 01/01/70 00:00 | |
Difference is... | 01/01/70 00:00 | |
Actually, that was me | 01/01/70 00:00 | |
Oops | 01/01/70 00:00 | |
If you're not determined to use FAT12 or 16 | 01/01/70 00:00 | |
Conclusion?![]() | 01/01/70 00:00 |