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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T00:19:15+00:00 2026-05-19T00:19:15+00:00

I want to write a compiler for a custom markup language, I want to

  • 0

I want to write a compiler for a custom markup language, I want to get optimum performance and I also want to have a good scalable design.

Multi-paradigm programming language (C++) is more suitable to implement modern design patterns, but I think that will degrade performance a little bit (think of RTTI for example) which more or less might make C a better choice.

I wonder what is the best language (C, C++ or even objective C) if someone wants to create a modern compiler (in the sense of complying to modern software engineering principles as a software) that is fast, efficient, and well designed.

  • 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-19T00:19:16+00:00Added an answer on May 19, 2026 at 12:19 am

    The “expensive” features of C++ (e.g., exceptions, virtual functions, RTTI) simply don’t exist in C. By the time you simulate them in C, you’re likely to end up with something at least as expensive as it is in C++, but less known, less documented, etc. (let’s face it: compiler writers aren’t stupid — while it’s possible you can implement a feature “better” than them, it’s not really particularly likely).

    In the other direction, templates (for one example) often make it relatively easy to write code that is considerably faster than is practical in C. Just for one obvious example, C++ code using std::sort will often be two to three times as fast as equivalent C code using qsort.

    Bottom line: the only reason for a C++ program to be slower than an equivalent written in C is if you’ve decided (for whatever reason) to write slower code. Common reasons are simplicity and readability — and in most cases, those are more important than execution speed. Nonetheless, using C++ doesn’t necessarily carry any speed penalty. It’s completely up to you to decide whether to do something that might run more slowly.

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

Sidebar

Related Questions

I want to write a compiler for a language that denotes program blocks with
I want to write a little DBQuery function in perl so I can have
I want to write a (gmake) makefile for a compiler that - unlike gcc
I have a file with some custom tags and I'd like to write a
I have a generic class Proxy<T> , and I want to write another generic
I am interested in writing a very minimalistic compiler. I want to write a
Possible Duplicates: Methodologies for designing a simple programming language Learning to write a compiler
I write 2 GWT module and compile it. I want locate ***.nocache.js files into
Hello I want write my own desktop sharing application in Java. The application should
I want to write a Swing application in Griffon but I am not sure

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.