Menu

Doubt_ Assembly

Tania
2008-05-28
2013-06-04
  • Tania

    Tania - 2008-05-28

    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)

     
    • Nobody/Anonymous

      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

       
    • Nobody/Anonymous

      > 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 ...

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.