News for hackers. Stuff that matters.
Re:Understanding C by learning assembly by jwdunne on Wednesday May 20, 2015 @03:45PM (#9578751)
What resources would you recommend to get started with?
Re:Understanding C by learning assembly by daj40 on Wednesday May 20, 2015 @04:04PM (#9578907)
The "Dragon Book" is pretty solid and a widely accepted resource: http://en.wikipedia.org/wiki/Compilers:_Principles,_Techniqu...
Re:Understanding C by learning assembly by wglb on Wednesday May 20, 2015 @05:55PM (#9579582)
One of the authors of the Rosalyn compiler has a different opinion: https://news.ycombinator.com/item?id=5149315. And he gives some examples of much better books.

It used to be good, but it is not any longer thought of that way.

Re:Understanding C by learning assembly by tptacek on Wednesday May 20, 2015 @06:22PM (#9579745)
I think you'll learn more from porting a simple C compiler than you will from any compiler book, at least given a fixed amount of time to do either task in.
Re:Understanding C by learning assembly by wglb on Thursday May 21, 2015 @01:25PM (#9584098)
This book, http://www.amazon.com/Compiler-Generator-Automatic-Computati..., which by today's standards is not a very good book, got me started in my compiler career.

And I agree with your basic point that building one is the only to gain true understanding.

Re:Understanding C by learning assembly by nickpsecurity on Wednesday May 20, 2015 @10:14PM (#9580589)
If I was going academic and imperative language, I'd suggest this old paper written by The King of Simple Languages and Compilers:

http://www.ethoberon.ethz.ch/WirthPubl/CBEAll.pdf

Re:Understanding C by learning assembly by tptacek on Wednesday May 20, 2015 @04:21PM (#9579012)
Very easy: port c4.c to a new language.
Re:Understanding C by learning assembly by jwdunne on Friday May 22, 2015 @07:42AM (#9587707)
This is great. I'll have to brush up on my C too to port. Two birds, one stone :) thank you!
Re:Understanding C by learning assembly by peterfirefly on Friday May 22, 2015 @04:32PM (#9590778)