??? 09/25/06 08:25 Read: times |
#124972 - boguous atmel header files, include compiler.h Responding to: ???'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: https://svn.sourc...compiler.h Greetings, Frieder Note: There also is a header file at89c51snd1c.h within the SDCC distribution but this is not (yet) portable across the above mentioned compilers. |
Topic | Author | Date |
Compiling for the 8051 Arch. | 01/01/70 00:00 | |
8051 Compilers | 01/01/70 00:00 | |
In what way do you go aground? | 01/01/70 00:00 | |
sdcc + mide | 01/01/70 00:00 | |
block diagram of 80c51 microcontroler | 01/01/70 00:00 | |
It is in the datasheet | 01/01/70 00:00 | |
... or the so-called bible![]() | 01/01/70 00:00 | |
Can't | 01/01/70 00:00 | |
Another vote for Keil | 01/01/70 00:00 | |
I'll also vote for Keil | 01/01/70 00:00 | |
Or Raisonance | 01/01/70 00:00 | |
re Keil and Raisonance | 01/01/70 00:00 | |
Actualy. | 01/01/70 00:00 | |
Going with IAR | 01/01/70 00:00 | |
boguous atmel header files, include compiler.h | 01/01/70 00:00 | |
Problems | 01/01/70 00:00 | |
IAR changed from v5 to v6 | 01/01/70 00:00 | |
How very thoughtful of them! | 01/01/70 00:00 | |
Tools available | 01/01/70 00:00 |