How important are section/segment directives? I’ve noticed that they are usually optional. Also, I’ve noticed that the output size changes when you do or do not include them.
I’m using NASM, if that helps.
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.
They are very important because if you save your strings in the Code segment the program could execute much slower and the Strings blow up the data in the Instruction cache.
If you create a Library(.lib or something like that) it is also important because you don’t wan’t data (strings) to lay directly behind your executable instructions because of the reasons above.