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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T20:37:23+00:00 2026-05-10T20:37:23+00:00

I am a firm believer in the idea that one of the most important

  • 0

I am a firm believer in the idea that one of the most important things you get from learning a new language is not how to use a new language, but the knowledge of concepts that you get from it. I am not asking how important or useful you think Assembly is, nor do I care if I never use it in any of my real projects.

What I want to know is what concepts of Assembly do you think are most important for any general programmer to know? It doesn’t have to be directly related to Assembly – it can also be something that you feel the typical programmer who spends all their time in higher-level languages would not understand or takes for granted, such as the CPU cache.

  • 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. 2026-05-10T20:37:24+00:00Added an answer on May 10, 2026 at 8:37 pm

    I think assembly language can teach you lots of little things, as well as a few big concepts.

    I’ll list a few things I can think of here, but there is no substitute for going and learning and using both x86 and a RISC instruction set.

    You probably think that integer operations are fastest. If you want to find an integer square root of an integer (i.e. floor(sqrt(i))) it’s best to use an integer-only approximation routine, right?

    Nah. The math coprocessor (on x86 that is) has a fsqrt instruction. Converting to float, taking the square root, and converting to int again is faster than an all-integers algorithm.

    Then there are things like accessing memory that you can follow, but not properly apprecatiate, until you’ve delved into assembly. Say you had a linked list, and the first element in the list contains a variable that you will need to access frequently. The list is reordered rarely. Well, each time you need to access that variable, you need to load the pointer to the first element in the list, then using that, load the variable (assuming you can’t keep the address of the variable in a register between uses). If you instead stored the variable outside of the list, you only need a single load operation.

    Of course saving a couple of cycles here and there is usually not important these days. But if you plan on writing code that needs to be fast, this kind of knowledge can be applied both with inline assembly and generally in other languages.

    How about calling conventions? (Some assemblers take care of this for you – Real Programmers don’t use those.) Does the caller or callee clean up the stack? Do you even use the stack? You can pass values in registers – but due to the funny x86 instruction set, it’s better to pass certain things in certain registers. And which registers will be preserved? One thing C compilers can’t really optimise by themselves is calls.

    There are little tricks like PUSHing a return address and then JMPing into a procedure; when the procedure returns it will go to the PUSHed address. This departure from the usual way of thinking about function calls is another one of those ‘states of enlightenment’. If you were ever to design a programming language with innovative features, you ought to know about funny things that the hardware is capable of.

    A knowledge of assembly language teaches you architecture-specific things about computer security. How you might exploit buffer overflows, or break into kernel mode, and how to prevent such attacks.

    Then there’s the ubercoolness of self-modifying code, and as a related issue, mechanisms for things such as relocations and applying patches to code (this needs investigation of machine code as well).

    But all these things need the right sort of mind. If you’re the sort of person who can put

    while(x--) {   ... } 

    to good use once you learn what it does, but would find it difficult to work out what it does by yourself, then assembly language is probably a waste of your time.

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

Sidebar

Ask A Question

Stats

  • Questions 66k
  • Answers 66k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer Based on your edit, I think you're looking for this:… May 11, 2026 at 11:35 am
  • added an answer You don't need an ORM solution: you need a caching… May 11, 2026 at 11:35 am
  • added an answer The main problem would be, as I see it, that… May 11, 2026 at 11:35 am

Related Questions

I am a firm believer in the idea that one of the most important
I am a web-developer working in PHP. I have some limited experience with using
I am a broke college student. I have built a small web app in
I am a C/C++ programmer professionally, but I've created a couple of personal web
I am a developer. An architect on good days. Somehow I find myself also
I am a student studying software development, and I feel programming, in general, is
I am a member of all the roles (Browser, Content Manager, My Reports, Publisher,
I am a novice programmer who is trying to teach myself to code, specifically
I am a bit confused about socket programming in C. You create a socket,
I am a little curious about the cute little kaleidoscopic images associated with each

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.