I am developing a program in assembly language and I would like to see clarified a doubt. How do I know what is the last memory position of the code of the program. How can I find it? I need of your help!(Please)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The question is, where do you want the label? Do you want the end of literal executable code, or including ".data" and ".bss", if any? If there's a linker involved, you may need to figure out what the linker thinks is "last" - or figure out how to *tell* it what you want "last".
Give us more information about what you're doing (usually when they don't mention "What OS?", it's Windows... sigh), and perhaps we can provide an actual example...
Best,
Frank
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi .. Good afternoon.
I am developing a program in assembly language and I would like to see clarified a doubt. How do I know what is the last memory position of the code of the program. How can I find it? I need of your help!(Please)
Put a label there.
The question is, where do you want the label? Do you want the end of literal executable code, or including ".data" and ".bss", if any? If there's a linker involved, you may need to figure out what the linker thinks is "last" - or figure out how to *tell* it what you want "last".
Give us more information about what you're doing (usually when they don't mention "What OS?", it's Windows... sigh), and perhaps we can provide an actual example...
Best,
Frank
> when they don't mention "What OS?", it's Windows... sigh
Very true :-(
> is the last memory position of the code
Note that writing above this address might still not be safe ...