4 ms·
I was an experienced asm programmer before a friend loaned me a copy of K+R C. I understood C immediately. I imagine trying to learn C without knowing assembler
by WalterBright 3y ago
I was an experienced asm programmer before a friend loaned me a copy of K+R C. I understood C immediately. I imagine trying to learn C without knowing assembler would be a much tougher road.
Knowing C also helps in understanding a lot of other languages.
- deleted 3y ago[deleted]
- ykonstant 3y agoYour comment prompted me to submit the following question at reddit: https://www.reddit.com/r/learnprogramming/comments/18zz72t/draw_stickman_in_linux_tty_console_with_assembly/ https://www.reddit.com/r/learnprogramming/comments/18zz72t/d...? If you know of a better place to ask such questions, let me know.
- pjmlp 3y agoSame here although coming from multiple languages, so C was only another syntax to do the same things I was already doing in those languages. As such I never understood what is so hard about pointers, we were already close friends before learning C.
- WalterBright 3y ago> pointers The first thing learned with assembler is pointers and addresses. So I don't know how hard it would be to get them coming from other languages. But I did first learn to program in Basic and Fortran, which gave zero insight whatsoever when subsequently learning assembler. I was pretty baffled by it for a while, until I suddenly "got it".
- pjmlp 3y agoIt helped that on 8 bit home computers BASIC was the OS and systems language, exposing the whole hardware, including having pointer like mechanisms, via PEEK, POKE, DATA, USR, PTR, among others. Diving into Z80 was a matter of performance, not additional features.