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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
Frieder Ferlemann
09/25/06 02:25
Read: 1724 times
Old Europe

#124972 - boguous atmel header files, include compiler.h
Responding to: Eric Tramel's previous message
Eric Tramel said:
Also, the microcontroller shipped with a CD that contained a number of different #include header files for different derivatives under different IDEs, one of these being IAR. I went ahead and tried to compile an empty void main() with the included header, but, oh no, 100 errors!

Atmel has been shipping boguous header files for several "non Keil" C compilers for some years now. You're lucky if IAR throws out warnings/errors.
(The header files Atmel ships for SDCC are boguous too but the SFR definitions look like variable definitions to SDCC so you get no warning.)

Maybe we should do some fund-raising so Atmel can afford some free compiler evaluation versions and SDCC ?^)

Should I go through and manually create a new header for the IAR environment using the structure of the generic header and the addresses from the manufacturer's given header as a guide?

If you create header files you can make them portable: you can #include <compiler.h> to allow using your new header file with several compilers.

The file compiler.h at the link below given here aims to provide header file compatibility between SDCC, Keil, Raisonance, IAR, Hi-Tech, Tasking, Crossware:


Note: There also is a header file at89c51snd1c.h within the SDCC distribution but this is not (yet) portable across the above mentioned compilers.

List of 19 messages in thread
Compiling for the 8051 Arch.      Eric Tramel      09/23/06 11:18      
   8051 Compilers      Russ Cooper      09/23/06 11:38      
      In what way do you go aground?      Jez Smith      09/23/06 13:58      
         sdcc + mide      Wira Kasem      09/25/06 04:14      
      block diagram of 80c51 microcontroler      Sanjay Arvind Tare      10/07/06 20:50      
         It is in the datasheet      Neil Kurzman      10/07/06 21:24      
            ... or the so-called bible      Andy Neil      10/09/06 01:00      
         Can't      Dan Henry      10/08/06 09:45      
   Another vote for Keil      Joseph Hebert      09/23/06 18:06      
      I'll also vote for Keil      Craig Steiner      09/24/06 19:27      
         Or Raisonance      Kalpak Dabir      09/24/06 20:53      
            re Keil and Raisonance      Erik Malund      09/25/06 08:14      
   Actualy.      Jez Smith      09/24/06 23:40      
   Going with IAR      Eric Tramel      09/25/06 00:38      
      boguous atmel header files, include compiler.h      Frieder Ferlemann      09/25/06 02:25      
      Problems      Andy Neil      09/25/06 04:52      
      IAR changed from v5 to v6      Maarten Brock      09/25/06 09:52      
         How very thoughtful of them!      Andy Neil      09/25/06 10:16      
            Tools available      Maarten Brock      09/25/06 12:27      

Back to Subject List