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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
04/28/08 07:26
Read: times


 
#154082 - Possible advantage of 'C'-based tool
Responding to: ???'s previous message
Per Guldmann said:
I'll have to do a rather simple userinterfaces, which send some data out the serial port to my (8051) aplication. The PC end would run under windows XP.

Will you be programming the 8051 in 'C'?

If so, using a 'C'-based tool on the PC can bring you two advantages:

  • Sharing code between PC & 8051 - particurly to do with the comms protocol;

  • PC compilers often give much fuller diagnostics that the "small" embedded compilers (including Keil) - so you can use the PC compiler to check your source code.

    Of course, this means setting-up a suitable regime to make the code compilable on the two different compilers - but that's not hard (with a few #defines and typedefs), and will pay dividends in giving you "portable" code...

    I do this all the time, and have some algorithm and protocol code that will build for PC (using MS or Borland compilers), ARM, AVR, or 8051.

    Of course, you can't do it for the lowest-level direct-IO stuff, or anything that relies on instruction timing - but it's fine for algorithms and protocols.

    See Maarten Brock's compiler.h, and the related discussion at:
    http://www.8052.com/forum/read.phtml?id=116190


  • List of 8 messages in thread
    TopicAuthorDate
    time switch            01/01/70 00:00      
       Visual Basic 2008 express edition?            01/01/70 00:00      
          MS Express Editions; CodeGear equivalents; MinGW            01/01/70 00:00      
       Whatever you choose, read the licensing agreement            01/01/70 00:00      
          In that case...            01/01/70 00:00      
       Consider Good Old VB6            01/01/70 00:00      
          Thanx...........            01/01/70 00:00      
       Possible advantage of 'C'-based tool            01/01/70 00:00      

    Back to Subject List