I am looking at lots of assembly language code that is compiled along with c. They are using simple #define assembly without any headers in boot.s code. How does this work ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Typically
.sfiles are processed by an assembler. Without knowing any other details, there’s nothing more to say..sfile goes in,.ofile comes out.Many assemblers provide some kind of
includedirective to allow use of headers, which would also be in assembly language.Ah, the code you linked is for use by the GNU
asassembler. If you’re on Linux or Mac, doman asto learn about it. If you’re on Windows, install MinGW or Cygwin.