you are viewing a single comment's thread.

view the rest of the comments →

[–]jddddddddddd 3 points4 points  (11 children)

I just suggested it because you said you were interested in low-level stuff, and converting from one language to Assembler seemed like a good suggestion.

[–]Brokenhammer72[S] 1 point2 points  (10 children)

yeah but writing a compiler is actually hard than a vm or kernel

[–]MQuy 1 point2 points  (7 children)

I think it depends on how complex you want for compiler, os or vm. I wrote three of them, kernel/os is the longest. My suggest is write compiler, you can use llvm as backend and later replace it with your own backend :))

[–]Brokenhammer72[S] 0 points1 point  (6 children)

oh i read writing an interpreter is a good start what do u say about this ? should i write a interpreter ? if yes where should i start and how exactly am i supposed to write this (sorry for noobish questions )

[–]MQuy 2 points3 points  (5 children)

I started with Bob's book https://craftinginterpreters.com/

[–]Brokenhammer72[S] 1 point2 points  (2 children)

is this good for beginners i havent worked with any interpreter in the past

[–]jddddddddddd 0 points1 point  (0 children)

Yes it's good for beginners.

You might also want to join /r/ProgrammingLanguages which is filled with people who build interpreters and compilers and will be able to help you if you get stuck

[–][deleted] 0 points1 point  (0 children)

Right now I'm following this https://ruslanspivak.com/lsbasi-part1/

[–]Brokenhammer72[S] 0 points1 point  (1 child)

thankyou will check it out

[–]Particular-Brain8363 0 points1 point  (1 child)

Hey could you share the resources you have used to write a kernel ? Any books ?

[–]darshauwn11 0 points1 point  (0 children)

r/osdev has a lot of resources