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

  • Home
  • SEARCH
  • 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 874491
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T11:06:41+00:00 2026-05-15T11:06:41+00:00

How do you get started generating native code for a target platform? I’ve got

  • 0

How do you get started generating native code for a target platform? I’ve got (some) experience and (some) skill in C++, and am interested in going and writing my own compiler (for C++). But I’ve got little idea how I’m going to turn the end result into native code to execute on my target platform, which at the moment is just Windows, x86.

I’ve had a look at LLVM, but couldn’t understand their documentation for shiz.

Edit: In addition, LLVM won’t build on VS2010. I went through and cleaned up all the places where they apparently added .in on the end of the filename for fun, and fixed up the typedefs, and now they have some strange .def files that appear to be utterly needless that won’t compile, and I have no idea where in the trillion headers they’re called from.

More edit:
I’m already building/built my own AST/parser/lexer. I just need to know how to turn the results into native.

  • 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-15T11:06:42+00:00Added an answer on May 15, 2026 at 11:06 am

    Look at some of the other questions on writing compilers, such as learning-to-write-a-compiler, and having worked through something like the dragon book or Programming Language Pragmatics, you’ll understand enough of LLVM or gnu lightning to use them as your back end.

    Don’t try to write a C++ compiler unless you have several years to devote to the exercise; on the other hand creating something based on an existing back-end and expression templates might only take a couple of months.

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

Sidebar

Related Questions

I am trying to get started doing some Silverlight development. I am interested in
I'm attempting to get started with google wallet and am generating a jwt token
Im trying to get started with app development. Isnt this the corrent JDK if
I am trying to get started in testing ActiveAdmin, in particular I need to
I would like to get started developing games with Flixel, but im on a
I am trying to get started with iOS Airplay (split screen and mirroring) and
I just get started using BDD in Rails application, but I'm not sure what
I am trying to get started with scons . I have Python 3.0.1 and
I'm trying to get started with Hibernate, and when executing my program I get
i'm trying to get started with silverlight 2. i have a weird bug. every

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.