News for hackers. Stuff that matters.
Re:The cost of forsaking C by kahlonel on Tuesday February 13, 2018 @09:39PM (#16372972)
I partly agree with you. But its a fact that you can't just start learning assembly if you have never learned C in the first place. So, young devs, please start learning C first.
Re:The cost of forsaking C by mettamage on Tuesday February 13, 2018 @09:56PM (#16373046)
This is false. I have learned the basics of assembly without knowing C first. My experience before learning assembly was: Java, Python and some Objective-C (without knowing pointers). So if your point is that you need to learn programming first, then maybe that is true but I highly doubt it. But I can't refute that with my own experience.

Here wa my roadmap:

(1) I first learned assembly by learning computer architecture from Tanenbaum's book -- Structured Computer Organization -- and related course at the Vrije Universiteit Amsterdam. This taught me a toy architecture (Mic1) but it give me a rough idea of how assembly worked.

(2) Then, later I took a course in binary and malware analysis and all that we were required to do was to read x86 assembly in IDA and interact with it via GDB -- and using the command: layout asm, which gives a layout for all the register values and upcoming instructions.

And once I have a debugger available and understand it well enough, I can learn quite well since I can make little predictions and check if they are right or wrong, and so on.

Re:The cost of forsaking C by Santosh83 on Wednesday February 14, 2018 @01:18PM (#16377912)
I learned assembly as my first ever programming language and it was just fine. Assembly tends to be simple and can get you coding quickly and understanding the machine as well. It's of course an awfully inefficient way to code in general and that's why we have HLLs but its not true that you need to learn at least one HLL before learning assembler.
Re:The cost of forsaking C by lttlrck on Tuesday February 13, 2018 @09:58PM (#16373055)
That’s simply untrue. Start with a small micro controller, a Microchip PIC for example and you’ll quickly find C is complete overkill.
Re:The cost of forsaking C by jhbadger on Wednesday February 14, 2018 @08:46AM (#16375624)
In the 1980s, most software on 8-bit computers were written in assembly, as compilers for high level languages like C or Pascal were available but 1) used up too much of the (maximum) 64K available 2) generated terrible code.
Re:The cost of forsaking C by turbohz on Wednesday February 14, 2018 @03:19AM (#16374337)
Forgot the /s?