You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you change the boot.S to boot.asm, you won't get boot_s.o when you compiler boot.S.
As you can see in this picture, When I compile boot.S, it can be compiled correctly. But when I change it to boot.asm and other file names. it won't be compiled correctly.
Even it is a warning, it still can't generate the .o file.
The text was updated successfully, but these errors were encountered:
file.s Assembler code. file.S, file.sx: Assembler code that must be preprocessed.
other: An object file to be fed straight into linking. Any file name with no recognized suffix is treated this way.
So gcc will not process file boot.asm in any way. It won't assemble it like it would file boot.s. Instead it passes it to the linker. And as gcc is called with -c for "compile/assemble only, do not link", it warns that the file is not used. See again https://gcc.gnu.org/onlinedocs/gcc/Overall-Options.html:
-c: Compile or assemble the source files, but do not link. The linking stage simply is not done. The ultimate output is in the form of an object file for each source file.
If you change the boot.S to boot.asm, you won't get boot_s.o when you compiler boot.S.
As you can see in this picture, When I compile boot.S, it can be compiled correctly. But when I change it to boot.asm and other file names. it won't be compiled correctly.
Even it is a warning, it still can't generate the .o file.
The text was updated successfully, but these errors were encountered: