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 8421167
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T03:04:24+00:00 2026-06-10T03:04:24+00:00

I’ve come across many programming languages. Each of them had their charm, but also

  • 0

I’ve come across many programming languages. Each of them had their charm, but also a few things I disliked. Therefore I’m designing my own programming language and simply implement the things I liked in other languages.

After doing some of research, though mostly speculation, I believe I somewhat understand how processors and operating systems work. I managed to make an interpreter which reads and interprets instructions in a custom format I made using an instruction pointer and some (virtual) registers, and have been compiling code to that format for now.

However, this seems silly to me as my compiler now generates a binary to generate a binary and interpret it, and then interprets that. Though the current way of doing it does have some benefits (such as compiling just once and being able to run it almost everywhere), I’m curious about where to start when making a compiler that actually generates code the operating system can read.

I heard some things about PE and ELF, but have not been able to find anything that describes these formats at a low level. Most things seem to be about the great concepts it uses to do all sorts of stuff, but nothing seems to be structured in an understandable way such as firstly 16 bits of …, then 20 bits of …, then 28 of …, then the relocation table, then some instructions of which … means … etc.

Also, I use C++.

  • 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-06-10T03:04:26+00:00Added an answer on June 10, 2026 at 3:04 am

    Here is an article about how to create tiny/simple PE files for Windows:

    http://www.phreedom.org/research/tinype/

    That article links to a guide for creating tiny/simple ELF files for Linux:

    http://www.muppetlabs.com/~breadbox/software/tiny/teensy.html

    They both have lots of technical details about the file formats, and they both mention nasm and similar tools. I think the best way for you to accomplish your goals is going to be to generate assembly code and have nasm or another assembler create your executables.

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

Sidebar

Related Questions

I want to count how many characters a certain string has in PHP, but
link Im having trouble converting the html entites into html characters, (&# 8217;) i
Basically, what I'm trying to create is a page of div tags, each has
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
This could be a duplicate question, but I have no idea what search terms
Seemingly simple, but I cannot find anything relevant on the web. What is the
I want to construct a data frame in an Rcpp function, but when I
I need to clean up various Word 'smart' characters in user input, including but

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.