Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a difference in intended meaning between .s (lower-case) and .S (upper-case) assembly files?

I have noticed that some libraries ship with assembly files using a .s extension, and others ship assembly files with a .S extension. GCC seems to handle these differently.

Is there any intended meaning behind these two different extensions?

like image 578
sdgfsdh Avatar asked Jun 15 '18 20:06

sdgfsdh


1 Answers

The difference is that .S (uppercase) files are first run through the C preprocessor and afterwards through the assembler, while .s (lowercase) files do not contain any preprocessor directives and are fed directly to the assembler.

like image 120
DeiDei Avatar answered Sep 18 '22 00:09

DeiDei