3 ms·
> Save it as fizzbuzz.S (that's a capital S as the extension) What’s the significane of “.S” vs “.s”?
by haunter 3y ago
> Save it as fizzbuzz.S (that's a capital S as the extension)
What’s the significane of “.S” vs “.s”?
- easytiger 3y agoGCC et al won't overwrite a .S but if you ask it to gen ASM (e.g. gcc -S xyz.c) it will overwrite a .s
- harrisi 3y agoCapital S will run the pre processor first. Edit: From manpage: file.s Assembler code. file.S file.sx Assembler code that must be preprocessed.
- wkz 3y agoIIRC, I believe that the difference traditionally was whether to pass the input through the preprocessor (.S), or not (.s). Not sure if it makes a difference on modern toolchains.
- zen_1 3y agoThe convention I'm used to uses .S to denote hand-written assembly files (usually tracked in git) vs .s for machine generated assembly which can be overwritten as needed.