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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T01:14:35+00:00 2026-05-26T01:14:35+00:00

My question is specifically for Windows C++ compilers and Visual Studio, but I got

  • 0

My question is specifically for Windows C++ compilers and Visual Studio, but I got offered to interview for a job in finance where they wanted somebody very technical to write real-time multi-threaded code who could analyse at assembly level the code generated by a C++ compiler.

What are the methods one can apply to learn the link between C++ code and the generated assembly and achieve this level of proficiency ?

  • 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-26T01:14:36+00:00Added an answer on May 26, 2026 at 1:14 am

    The first thing to do would be to learn the assembler and machine code.
    There is some very good documentation of the machine code available at
    the Intel site (although it may be more detailed than you need). There
    are two common assembler formats in widespread use: the one used by
    Microsoft is based on the original Intel assembler, where as g++ uses
    something completely different (based on the original Unix assembler for
    PDP-11), so you’ll have to choose one (although the assembler syntax
    itself is rarely a real problem—knowing what the individual
    instructions do is more important).

    Once you have some idea of how to read assembler: most compilers
    have options to output assembler: for VC++, use /Fa (and /c as well,
    if you don’t want to actually link the results); for g++, -S (which
    causes the compiler to stop once it has generated the assembler. In the
    case of VC++, the assembler will be in a file xxx.asm (where xxx.cpp
    was the name of the file being compiled), for g++, xxx.s. Try
    compiling some code, with different levels of optimization, and then
    look at the assembler in an editor.

    Finally, if the question is asked, it’s probably because the interviewer
    is concerned about performance issues; what he’s really interested in is
    whether you know the relative cost of various operations (or the risks
    involved when multithreading; e.g. what operations are atomic, etc.) In
    which case, it probably wouldn’t hurt to point out that issues like
    locality (which determines the percent of cache hits) are often more
    important that the individual operations.

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

Sidebar

Related Questions

(This question specifically in C#, but applies generally to .NET) I have a largish
There is a similar question about Windows, but it won't work for Unix based
(I've read a lot about 64-bit versus 32-bit OS/Apps, but this question is specifically
I'm specifically interested in Windows 2000/XP, but Vista/7 would be interesting too (if different).
I didn't want to make the title too long but this question specifically refers
This question is specifically related to overriding the equals() method for objects with a
Unlike the other posts about the task delete all tables, this question is specifically
Just a quick question about ReadWriteLocks in Java (specifically the ReentrantReadWriteLock implementation) as I
I'm working through Aaron Hillegass' book, specifically the lottery example. I had a question
I found a couple questions similar to this, but not specifically for .NET projects,

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.