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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
12/30/04 12:30
Read: times


 
#84108 - Overflow
Responding to: ???'s previous message
Shahzad said:
yes i just finish the functionality required using Turbo C++ on PC. but when i cut and past the code in Keil C++ ...
First, note that Keil C51 is an ANSI 'C' compiler - it is not C++!!

... it gave me message
Address Space Overflow 
Space Data
Segment DateToSeconds
That is why i got interested converting the code in Assembly.

Why do you think that assembler will help here?
Assembler cannot magically compress the same amount of data into a smaller amount of space!
A 32-bit variable requires 32 bits (4 bytes) no matter what language you use! And handling 32-bit variables is going to be hard work for an 8-bit processor no matter what language you use!

You first task must be to look at all those variables, and work out what size they actually need to be - and make them no bigger!



List of 22 messages in thread
TopicAuthorDate
C Code t o Assembly            01/01/70 00:00      
   C to Asm            01/01/70 00:00      
   C Code t o Assembly            01/01/70 00:00      
      only one table            01/01/70 00:00      
   Need some more details            01/01/70 00:00      
      Not even true !            01/01/70 00:00      
      Answer is Wrong!!            01/01/70 00:00      
   Re : previous 3 replies and Paul            01/01/70 00:00      
      Previously on 8052.com            01/01/70 00:00      
      Overflow            01/01/70 00:00      
      just one array            01/01/70 00:00      
         too limited, Paul            01/01/70 00:00      
         Nothing to do with scope            01/01/70 00:00      
            Agreed            01/01/70 00:00      
   No success !            01/01/70 00:00      
   Re: Peter            01/01/70 00:00      
   to assembly            01/01/70 00:00      
   Example code            01/01/70 00:00      
   Any unused functions in your program?            01/01/70 00:00      
   query            01/01/70 00:00      
      Off-Topic - start a new thread            01/01/70 00:00      
         ... and use a _descriptive_ subject!            01/01/70 00:00      

Back to Subject List