Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6326703
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T17:08:28+00:00 2026-05-24T17:08:28+00:00

I’m trying to learn about how compilers, operating systems, and computer systems work internally.

  • 0

I’m trying to learn about how compilers, operating systems, and computer systems work internally. Here’s my current plan:

  1. Write a simple virtual machine in C, that can accept input written in its machine language ( a custom language of my specification. )
  2. Write a an assembler for that virtual machine.
  3. Write a very basic compiler for a basic-like language for the machine.
  4. Extend the interactivity of the virtual machine by including a screen (I think I’ll use SDL), and an interface to that screen via video memory. I could also add mouse/keyboard functionality.

Any tips or recommendations would be nice. Thank you in advance!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T17:08:30+00:00Added an answer on May 24, 2026 at 5:08 pm

    My first advice is to read a high level book on the subject. That is, I am assuming you haven’t done this yet, and were planning on simply working along with some online tutorials or something. At least for me, I tend to want to dive head first into things like this, but then I quickly feel in over my head and then just give up the project. Making sure I have a really good high level understanding of projects before starting helps me tremendously.

    One series I might recommend are the Write Great Code books. I can’t vouch for the whole series as I haven’t read them all, but my office has them at work and I have used them a number of times to get a pretty good grasp on the subject before I dove headfirst into something. For instance, and one example that may relate directly to your plan, I was needing to understand how the GCC compiler organized the ELF binary it generates, what each section is, and what is stored there. (This was for an embedded system and we were expanding our RAM so I had to reorganize some stuff…)

    You said “Nothing too hard”… In my opinion, I think your steps are already pretty difficult, especially if your end goal is to learn about compilers and operating systems. I would skip this whole virtual machine, at least for now. In reality, processors are pretty simple, and based on the fact that that you already know that it just processes a ‘machine language’ you probably already have a good starting grasp.

    I would instead start with step 3 and just writing your own compiler. I took a compilers class in college and by the end of the semester, I had a working Pascal compiler that I built from the ground up using LEX and YACC. It was quite enlightening. You might also look at Bison as its used in conjunction with yacc for such things. I’ve never used it though.

    Also, simply doing little exercises in your free time, like figuring out how to manipulate GCC to compile hello world into less than X number of bytes will teach you a lot more than you think about how that stuff works. (There are quite a few examples of this on the web, by the way)

    Have Fun!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I am trying to understand how to use SyndicationItem to display feed which is
Basically, what I'm trying to create is a page of div tags, each has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
Seemingly simple, but I cannot find anything relevant on the web. What is the
I am trying to loop through a bunch of documents I have to put
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I'm making a simple page using Google Maps API 3. My first. One marker
I'm trying to use string.replace('’','') to replace the dreaded weird single-quote character: ’ (aka

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.