What is the role of .s files in a C project?

后端 未结 4 1398
猫巷女王i
猫巷女王i 2020-12-23 21:52

I am working with an ARM Cortex M3 chip (STM32F2) and ST provides a \"standard peripheral library\". It has some useful .c and .h files. It also has .s files.

What i

4条回答
  •  温柔的废话
    2020-12-23 22:27

    They usually contain assembly code. The assembler turns them into object files which are later linked by the linker with the main stuff. But I imagine it does depend on the compiler, toolchain etc.

提交回复
热议问题