Just saw assembly extension as titled in a couple of platform, but just wodering how they are different. Thanks.
views:
191answers:
3The 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.
.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.
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.