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 17:15
Read: times


 
#128370 - have as much memory as possible
Responding to: ???'s previous message
Oleg Sergeev said:
Jan Waclawek said:
I'd like to use the rest of unused XRAM as a "heap".

What do you mean by this?

Exactly as Erik said somewhere above: to have available as much memory as possible for a particular task.
For example, error logging.
There is nothing mission-critical in it, hence I don't require some exact amount of memory for it; but I want to use all the unused memory for it, to have as much errors logged as possible.

Oleg Sergeev said:
If you are on C-side then just use this language standard.

First time I wrote down "xdata" I already departed from standard.
I doubt anything reasonable can be done on '51s with pure "standard" C.
Now, the question is, how far can we go in "hacks" and "deviations" (OK, call it "modifications" if you want) to call it "non-standard"?

I see your point, Oleg, but believe me, I would not use a hack without knowing exactly what am I doing. That's exactly why I ask here. SDCC authors - Frieder, Maarten, and maybe more - are regular here. And, moreover, SDCC being open-source allows me (at least theoretically) even VERIFY that my hack works consistently...


Oleg Sergeev said:
Exactly. What is wrong with malloc() ?

One needs to know how much memory one wants to allocate. I want to allocate "all the rest". If there is a standard way to do it, I am your man. :-)


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