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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
07/09/07 13:06
Read: times


 
Msg Score: +2
 +2 Good Answer/Helpful
#141615 - Unsafe assumption!
Responding to: ???'s previous message
John Papas said:
i wrote simple program on KEIL which worked perfect and then i modified and i tested on SDCC ...

It is not safe to assume that you can just take any source code written for one compiler and have it produce identical reults on another!

This is especially so for the likes of Keil, which have a very great number of "special features" to tune them specifically to a limited architecture like the 8051.

No doubt SDCC also has its own set of "special features" and tricks to tune it specifically to a limited architecture like the 8051 - but the chances that these are idetical to Keil's (or any other's) is slim in the extreme!

For a start, are you certain that your SDCC startup code is correct?

Then, take a look at your 'C' source and search for anywhere that relies upon anything specific to Keil; eg,
  • data representation (size, endianness, etc);
  • function calling conventions (parameter passing, return values, etc);
  • any specific language extensions...

    SDCC has a bug on it or i make sth wrong?

    You said this is your "first time [with] SDCC", so the chances are high that it's not an SDCC bug...

    You'd probably be better off starting with SDCC examples until you're familiar with how SDCC works; porting between different compilers requires that you are familiar with both of them!

  • List of 12 messages in thread
    TopicAuthorDate
    SDCC and FLIP Programmer from ATMEL            01/01/70 00:00      
       "work"            01/01/70 00:00      
          i tested            01/01/70 00:00      
             packihx            01/01/70 00:00      
                still nothing            01/01/70 00:00      
                nope!            01/01/70 00:00      
       Your program generates error on compile            01/01/70 00:00      
          a question for Charles Bannister            01/01/70 00:00      
          Thank you Charles Bannister!            01/01/70 00:00      
             version            01/01/70 00:00      
       FLIP Translation?            01/01/70 00:00      
       Unsafe assumption!            01/01/70 00:00      

    Back to Subject List