Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
Russ Cooper
11/20/06 17:16
Read: 395 times
Phoenix, Az
USA


 
#128332 - Make a dummy variable ???
Responding to: Jan Waclawek's previous message
I haven't tried this, but it seems like one way would be to make a module containing nothing but a single dummy variable. If you then arrange to have that module be the last one linked, a pointer to the dummy variable should point to the spot just beyond used memory.

There may also be a way to get the linker to define a symbol having the value you want. Never having messed with SDCC, however, I can't say for sure.

-- Russ



List of 37 messages in thread
TopicAuthorDate
(SDCC): How to point to end of used memory?      Jan Waclawek      11/20/06 16:35      
   Make a dummy variable ???      Russ Cooper      11/20/06 17:16      
      A Better Idea      Neil Kurzman      11/20/06 17:32      
         Good Point      Russ Cooper      11/21/06 05:38      
            A good point indeed...      Jan Waclawek      11/21/06 05:53      
   SDCC options      Jez Smith      11/20/06 23:42      
      this is still my fixation to asm....      Jan Waclawek      11/21/06 01:57      
         Try this snippet?      Frieder Ferlemann      11/21/06 02:39      
            Thanks!      Jan Waclawek      11/21/06 03:08      
            Another bad idea?      Russ Cooper      11/21/06 05:26      
               it seems that this is hardwired in SDCC...      Jan Waclawek      11/21/06 05:50      
                  More guessing      Russ Cooper      11/21/06 06:04      
               like that snippet?      Frieder Ferlemann      11/21/06 06:18      
                  Yes!      Russ Cooper      11/21/06 06:33      
                  nice...      Jan Waclawek      11/21/06 07:43      
   you do not want a 'heap' in '51 C, however      Erik Malund      11/21/06 06:20      
      passing a #define to assembler within SDCC      Frieder Ferlemann      11/21/06 06:39      
         NO, no, no      Erik Malund      11/21/06 06:46      
            inline assembly versus separate assembly file      Frieder Ferlemann      11/21/06 07:32      
               separate file is nicer      Jan Waclawek      11/21/06 07:42      
                  good place to start, bad place to stay      Erik Malund      11/21/06 07:54      
               that's the crux      Erik Malund      11/21/06 07:42      
      Build-time scripts      Russ Cooper      11/21/06 07:42      
   the question of matter      Oleg Sergeev      11/21/06 09:39      
      have as much memory as possible      Jan Waclawek      11/21/06 10:15      
         be sure or not to be?      Oleg Sergeev      11/21/06 11:05      
            easy      Erik Malund      11/21/06 11:13      
               I'd disagree on this one...      Jan Waclawek      11/21/06 11:22      
         well, you have to mix to get that      Erik Malund      11/21/06 11:06      
            Did I miss something?      Russ Cooper      11/21/06 11:13      
               I thought I posted this      Erik Malund      11/21/06 11:30      
                  Thanks      Russ Cooper      11/21/06 13:44      
            Do you think I would ask answerable questions? :-)      Jan Waclawek      11/21/06 11:19      
               The Right Group?      Neil Kurzman      11/21/06 16:40      
         Know no nice solution      Maarten Brock      11/21/06 14:49      
            thanks      Jan Waclawek      11/21/06 16:13      
   Maybe compiler/linker settins help?      Juergen Christoph      11/22/06 02:32      

Back to Subject List