ASM vs. .asm vs. Assembly vs. Assembler

Discussion in 'Embedded Systems and Microcontrollers' started by joeyd999, Oct 12, 2015.

  1. joeyd999

    Thread Starter AAC Fanatic!

    Jun 6, 2011
    2,675
    2,722
    Warning: This thread will be much ado about nothing. Proceed with caution.

    When I refer to assembler code, I call it ".asm". Others call it "ASM".

    In long form, some say "assembly" rather than "assembler" which I think is the proper long form. Which is correct?

    "ASM" looks like an acronym to me. For those not in the know, they may run off looking for its definition. Granted, they may have no clue of ".asm" as well.

    I like to use .asm because it directly indicates the file type that is used by pretty much all assemblers.

    Thoughts welcome.
     
  2. joeyd999

    Thread Starter AAC Fanatic!

    Jun 6, 2011
    2,675
    2,722
    As far as "assembly" vs. "assembler":

    Assembler code is code written for an assembler in assembly language. No?
     
  3. WBahn

    Moderator

    Mar 31, 2012
    17,716
    4,788
    My take: The language is "assembly language" (of whatever flavor) and an "assembler" is what is used to convert "assembly code" to machine code. Using .asm as a shorthand for assembly language code seems reasonable to me. As for ASM, is there a particular assembler out there named ASM? I'm not sure, but I think there is. There are lots of assemblers such as MASM, TASM, and others that use ASM as a suffix, so it would not be unreasonable to use ASM (or perhaps *ASM just like you see *NIX for Unix/Linux, etc.) to refer to an assembler.

    But at the end of the day we have to accept that all of these terms WILL be used for all of these different things and we have to strive to understand what is meant based on the context of use as opposed what we would ideally like them to mean.
     
    cmartinez and joeyd999 like this.
  4. GopherT

    AAC Fanatic!

    Nov 23, 2012
    5,991
    3,738
    Although I am sure I do everything the correct way:p, this thread is clear evidence that we are running out of things to talk about.

    [​IMG]
     
  5. joeyd999

    Thread Starter AAC Fanatic!

    Jun 6, 2011
    2,675
    2,722
    Don't say I didn't warn you!
     
    GopherT likes this.
  6. MaxHeadRoom

    Expert

    Jul 18, 2013
    10,509
    2,369
    Back when I started using it it was used to write P.C. programs, it was not considered then that anyone would ever need any more than 1 meg of memory.
    Hence the 640K.
    Then we called it 'Assembly language'.
    Max.
     
  7. joeyd999

    Thread Starter AAC Fanatic!

    Jun 6, 2011
    2,675
    2,722
    Agreed. But should the assembly language code be called "assembly code" or "assembler code" as in, "code for the assembler"?
     
  8. MaxHeadRoom

    Expert

    Jul 18, 2013
    10,509
    2,369
    I think they wrote a song about it that involves 'Tomatoes'.:p
    Max.
     
  9. joeyd999

    Thread Starter AAC Fanatic!

    Jun 6, 2011
    2,675
    2,722
    I thought is was potatoes.
     
  10. joeyd999

    Thread Starter AAC Fanatic!

    Jun 6, 2011
    2,675
    2,722
    I love the internet. It seems I am not the first to ponder the question (see first paragraph).
     
  11. MaxHeadRoom

    Expert

    Jul 18, 2013
    10,509
    2,369
    I did a quick inventory list of Books out there that are available on the subject some have been around for decades and all the titles I found used 'Assembly' without exception.
    Max.
     
  12. joeyd999

    Thread Starter AAC Fanatic!

    Jun 6, 2011
    2,675
    2,722
    See my previous post. I will consider it authoritative. I found it on the internet, after all.
     
    ErnieM likes this.
  13. nsaspook

    AAC Fanatic!

    Aug 27, 2009
    2,907
    2,164
    Not very authoritative but this is what we were told.

    The assembler takes blocks symbolic 'machine' code' and converts it into a usable format for the linker that makes an executable program that can run directly on native hardware. This machine code is normally called an Assembly of machine code instructions. So the program is build from parts with each part an Assembly of the whole as in the mechanical construction of a machine.
     
  14. joeyd999

    Thread Starter AAC Fanatic!

    Jun 6, 2011
    2,675
    2,722
    Yes. For clarity, I shall use this in the future. In fact, I will endeavor to obscure (in a clarifying way, of course) it further.

    Should go over well with the noobs.
     
  15. GopherT

    AAC Fanatic!

    Nov 23, 2012
    5,991
    3,738
    And now, onto the .asm vs. ASM part of our show...
     
  16. vpoko

    Member

    Jan 5, 2012
    258
    47
    I'd say it's "source code" written in "assembly language". It gets processed (assembled) by an assembler. This is similar to how one writes source code in the C language and compiles it with a compiler.
     
  17. joeyd999

    Thread Starter AAC Fanatic!

    Jun 6, 2011
    2,675
    2,722
    Agreed. Takes too long to type, though. I'll have to write a macro.
     
  18. GopherT

    AAC Fanatic!

    Nov 23, 2012
    5,991
    3,738
    What will you call the macro?
     
  19. joeyd999

    Thread Starter AAC Fanatic!

    Jun 6, 2011
    2,675
    2,722
    .asm. Assuming punctuation is allowed.
     
    GopherT likes this.
  20. WBahn

    Moderator

    Mar 31, 2012
    17,716
    4,788
    The term ASM actually refers to a group of people that originated and, later, perpetuate and propagate assembly language programming.

    ASM - Analists, Smartasses, and Masochists.

    Anyone here qualify for membership based on any one of the pillars?

    How many, besides myself, can go for the trifecta and qualify for all three pillars.
     
Loading...