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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T13:13:55+00:00 2026-06-11T13:13:55+00:00

I learnt that C gets translated to assembly and then assembly gets translated to

  • 0

I learnt that C gets translated to assembly and then assembly gets translated to machine code. And I learnt how to translate basic C constructs such as pointers and loops to 32-bit MIPS assembly. But I didn’t learn how to translate regexes in for instance C to assembly, is there a recipe?

  • 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-11T13:13:56+00:00Added an answer on June 11, 2026 at 1:13 pm

    Translating regular expressions to assembly language seems to have gone out of style a couple decades ago. Instead, these days they’re usually compiled to deterministic finite automata (DFA), often with an intermediate step as a non-deterministic finite automaton (NFA). If you’re unfamiliar with these terms, see:

    • http://en.wikipedia.org/wiki/Deterministic_finite_automaton
    • http://en.wikipedia.org/wiki/Nondeterministic_finite_automaton

    The NFA corresponding to a regex is pretty easily constructed; just consider each point in the regex as a state, and the set of characters that can match and move you to the next point in the regex as the transitions from that state to the next state.

    Other popular regex engines, including PCRE, don’t compile the regex at all but use a backtracking matcher, which is simple to write, but has pathologically bad memory usage (many recursive call frames, leading to stack overflow, if implemented as actual function calls) and pathologically bad big-O performance (can be exponential time).

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

Sidebar

Related Questions

I learnt that when we manage a data structure such as a tree or
I learnt that Template allows us to customize the look of the control. I
From previous post, I learnt that for there are two ways, at least, to
One question about protected constructor. I learnt that the protected constructor can be used
Being a Java developer in an agile development cycle, I have learnt that it
I learnt the hard way that it is not possible to slipstream Visual Studio
I have learnt from this post that always use <a> tags or <button> tags
I had learnt by reading your great answers here, that it is not good
There is a web-application that works with Business Logic Layer (BLL). The BLL gets
After having learnt the hard way that shared variables are currently not guarded by

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.