Is there alternative way of expressing .s files in gcc?

  Kiến thức lập trình

I realize this may get rejected by stackoverflow, but:

I use a compiler that generates .s files to be assembled by gcc. I mix in C files as well, so the final gcc command line contains a mix of .s and .c files. Because .s files are just an intermediate file to me, I want to erase all of them in a make clean. Thus the problem. There are .s files, assembly files, that contain hand written code and other .s files that are generated. It would be an ideal solution if (say), .asm were a proper alternative to .s files, that way I could have the assembly files I want to keep as .asm files, and .s files are junk that can be removed. Is there another alternative to .s files? (the extension)?

A search turned up .S and .sx extensions, but each of those has special meanings. I (ideally) want a proper alias to .s files.

Thanks in advance.

LEAVE A COMMENT