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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
11/21/06 08:57
Read: times


 
#128340 - this is still my fixation to asm....
Responding to: ???'s previous message
Jez Smith said:
I assume from the use of the word heap that you want to use malloc and have got dynamic data sizes going on, in which case erm.....dunno you could dynamicaly calculate the memory after malloc has messed around with it which should be fun.

Certainly; however, I didn't want to have so much of that fun at this stage... I am still fixed somehow to asm where I would define all my variables using DS or so, then the last such defined variable would in fact point to the rest of available XRAM so I could use of it as much as possible for datalogging or similar.

Jez Smith said:
If youve got fixed data structures in XRAM then you just look at the map file to see where they live in XRAM.

This is of course the easy, obvious and completely bad way... Why should I look at the map file, can't the compiler do the dirty job for me? :-)
I assumed the same as Russ:
Russ Cooper said:
There may also be a way to get the linker to define a symbol having the value you want.
Of course, SDCC being open source, there certainly is a way how to do it - patch the linker - I just thought there might be some "standard" (read: cheaper :-) ) way how to do it...

For now, I simply placed a pointer somewhere above the already allocated memory hoping that the reserve I left there will suffice forever; and made a mental mark to check periodically (which I know for sure I will forget and I will have a lots of fun with conflicts arising from this - thanks heavens this is only a hobby stuff...)

Jan Waclawek


List of 37 messages in thread
TopicAuthorDate
(SDCC): How to point to end of used memory?            01/01/70 00:00      
   Make a dummy variable ???            01/01/70 00:00      
      A Better Idea            01/01/70 00:00      
         Good Point            01/01/70 00:00      
            A good point indeed...            01/01/70 00:00      
   SDCC options            01/01/70 00:00      
      this is still my fixation to asm....            01/01/70 00:00      
         Try this snippet?            01/01/70 00:00      
            Thanks!            01/01/70 00:00      
            Another bad idea?            01/01/70 00:00      
               it seems that this is hardwired in SDCC...            01/01/70 00:00      
                  More guessing            01/01/70 00:00      
               like that snippet?            01/01/70 00:00      
                  Yes!            01/01/70 00:00      
                  nice...            01/01/70 00:00      
   you do not want a 'heap' in '51 C, however            01/01/70 00:00      
      passing a #define to assembler within SDCC            01/01/70 00:00      
         NO, no, no            01/01/70 00:00      
            inline assembly versus separate assembly file            01/01/70 00:00      
               separate file is nicer            01/01/70 00:00      
                  good place to start, bad place to stay            01/01/70 00:00      
               that's the crux            01/01/70 00:00      
      Build-time scripts            01/01/70 00:00      
   the question of matter            01/01/70 00:00      
      have as much memory as possible            01/01/70 00:00      
         be sure or not to be?            01/01/70 00:00      
            easy            01/01/70 00:00      
               I'd disagree on this one...            01/01/70 00:00      
         well, you have to mix to get that            01/01/70 00:00      
            Did I miss something?            01/01/70 00:00      
               I thought I posted this            01/01/70 00:00      
                  Thanks            01/01/70 00:00      
            Do you think I would ask answerable questions? :-)            01/01/70 00:00      
               The Right Group?            01/01/70 00:00      
         Know no nice solution            01/01/70 00:00      
            thanks            01/01/70 00:00      
   Maybe compiler/linker settins help?            01/01/70 00:00      

Back to Subject List