views:

191

answers:

3

Just saw assembly extension as titled in a couple of platform, but just wodering how they are different. Thanks.

A: 

The file extension (if I understand you correctly) is just a convention whereby some mechanism can recognise the file.

For example .ASMis used by some to represent a source file written in some assembly language.

On windows .EXE is a convention for programs that can be executed. .Dll is an extension for code that can be executed by another executable.

As it stands by itself file extensions usually have no intrinsic meaning, but they do help people provide with naming standards and thus help other understand what they are for.

Preet Sangha
my understanding is that, for assembly file, one extension, e.g. .asm is good enough, just like exe/com for all executable files. why so many extensions for assembly that I would think there must be some reasons but I just don't reckon.
+1  A: 

.sNN is used by IAR, if I remember correctly. The NN varies according to the processor.

.asm is a common extension for assembly (IIRC we used it with MASM in the eighties).

.s (not preprocessed) or .S (preprocessed) is used for assembly language by the GNU tools.

starblue
A: 

I've noticed sometimes that the extensions used sometimes relate to the type of microprocessor the code is written for. So if it was for an 8051 it might be .s51. I sincerely doubt this is universal. I'd bet that whoever makes the tools just chooses one extension at random.

Stephen Friederichs